Skip to content

hash


joaat

int hash.joaat(string input)

Returns a JOAAT hash from the string provided (the string will be processed as lowercase)
Example Usage
local hash = hash.joaat("Example") -- expected: 822529522

sha_224

string hash.sha_224(string input)

Returns a SHA224 hash from the string provided
Example Usage
local hash = hash.sha_224("Example") -- expected: "3A381D10205D087FBD6A338CBDDD6F34E4F4380E45F5D332595CF217"

sha_256

string hash.sha_256(string input)

Returns a SHA256 hash from the string provided
Example Usage
local hash = hash.sha_256("Example") -- expected: "D029F87E3D80F8FD9B1BE67C7426B4CC1FF47B4A9D0A8461C826A59D8C5EB6CD"

sha_384

string hash.sha_384(string input)

Returns a SHA384 hash from the string provided
Example Usage
local hash = hash.sha_384("Example") -- expected: "FE27713A5276ADEF1D34169ED04C52B299BB792BEF7C903127893A53C07D910D5FCAAE18DE99164882A200192B236B14"

sha_512

string hash.sha_512(string input)

Returns a SHA512 hash from the string provided
Example Usage
local hash = hash.sha_512("Example") -- expected: "C6B0919C7FE628AE9056992C4A917E5DC035A9615D497F6EB2BD14063EAAD3E6508EFC8682FEC82823CA3F3DE311868A72990946166429F01B38F9F33D9CA610"

sha3_224

string hash.sha3_224(string input)

Returns a SHA3-224 hash from the string provided
Example Usage
local hash = hash.sha3_224("Example") -- expected: "45BE9EEB144A4067B74F04E5B8F73C26379FF8325FDD2858BB749DFE"

sha3_256

string hash.sha3_256(string input)

Returns a SHA3-256 hash from the string provided
Example Usage
local hash = hash.sha3_256("Example") -- expected: "358D8DB68DD7622887B41A01AAE8F81CC1BFB7A250C3B11BE01FC12831A56837"

sha3_384

string hash.sha3_384(string input)

Returns a SHA3-384 hash from the string provided
Example Usage
local hash = hash.sha3_384("Example") -- expected: "E589D67C1505CC7CA06CDEF8EDA009B05C69C700A9A7224366B721347F39242625970A2C37D40967FC193E5EA3E88816"

sha3_512

string hash.sha3_512(string input)

Returns a SHA3-512 hash from the string provided
Example Usage
local hash = hash.sha3_512("Example") -- expected: "34359A3440CC82648F0175629220C939B1B5D532D22E48AA3E44629281BF1B504CFC40BEBD77EE58C51D52B0F0C8795147C293331169B8E45E5FD02300D29340"