Sha256: Difference between revisions
Jump to navigation
Jump to search
UniOnDennis (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} {{MessageBox| bordercolorhex = FF0000 | bordertype = dotted | bgcolorhex = CCCCFF | image = File:Dialog-information.png | tit...") |
UniOnDennis (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
{{Server client function}} | {{Server client function}} | ||
{{ | {{Note box|returns an uppercase string, so make sure you string.upper() anything else you are checking against that has been sha256'd elsewhere.}} | ||
{{Tip|The sha module and this function may conflict with eachother, if you use this function uninstall the module!}} | |||
}} | |||
Calculates the sha256 hash of the specified string. | Calculates the sha256 hash of the specified string. | ||
==Syntax== | ==Syntax== |
Revision as of 15:39, 21 December 2012
This template is no longer in use as it results in poor readability.
Tip: The sha module and this function may conflict with eachother, if you use this function uninstall the module! |
Calculates the sha256 hash of the specified string.
Syntax
string sha256 ( string str )
Required Arguments
- str: the string to hash.
Returns
Returns the sha256 hash of the input string if successful, false otherwise.
Example
addCommandHandler ( "sha", -- Create a command function ( thePlayer, command, input ) if ( input ) then -- Check if the string exist local hash = sha256( input ) -- Generate the hash outputChatBox( hash ) -- Output the hash in the chat end end )
See Also
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace