Skip to main content
Version: 0.2.0

SHA/SHA2/SHA3

SHA

Cryptopp.hashFunctions.SHA1(data);

Parameters

ParameterTypeRequired
datastring
ArrayBuffer

Returns: string

SHA2

Cryptopp.hashFunctions.SHA2(data, '512');

Parameters

ParameterTypeRequired
datastring
ArrayBuffer
size"224"
"256"
"384"
"512"

Returns: string

SHA3

Cryptopp.hashFunctions.SHA3(data, '512');

Parameters

ParameterTypeRequired
datastring
ArrayBuffer
size"224"
"256"
"384"
"512"

Returns: string