Hash: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server client function}} This function returns a hash of the specified string in the specified algorithm. ==Syntax== <syntaxhighlight lang="lua"> string hash ( string algorithm, s...") |
No edit summary |
||
Line 15: | Line 15: | ||
Returns the hash of the data, false if an invalid argument was used. | Returns the hash of the data, false if an invalid argument was used. | ||
{{Requirements|1.4. | {{Requirements|1.4.1-6791|1.4.1-6791}} | ||
==See Also== | ==See Also== | ||
{{Utility functions}} | {{Utility functions}} |
Revision as of 10:11, 9 August 2014
This function returns a hash of the specified string in the specified algorithm.
Syntax
string hash ( string algorithm, string dataToHash )
Required Arguments
- algorithm: A string which must be one of these: "md5", "sha1", "sha224", "sha256", "sha384", "sha512"
- dataToHash: A string of the data to hash.
Returns
Returns the hash of the data, false if an invalid argument was used.
This template will be deleted.
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