Hashing operations.
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Members
-
<static, constant> SHA3_LENGTH
-
- Default Value:
-
- ["512","384","256","224"]
- Source:
-
<static, constant> HMAC_FUNCTIONS
-
- Default Value:
-
- ["MD5","SHA1","SHA224","SHA256","SHA384","SHA512","SHA3","RIPEMD-160"]
- Source:
Methods
-
<static> run_md5(input, args)
-
MD5 operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_sha1(input, args)
-
SHA1 operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_sha224(input, args)
-
SHA224 operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_sha256(input, args)
-
SHA256 operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_sha384(input, args)
-
SHA384 operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_sha512(input, args)
-
SHA512 operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_sha3(input, args)
-
SHA3 operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_ripemd160(input, args)
-
RIPEMD-160 operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_hmac(input, args)
-
HMAC operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_all(input, args)
-
Generate all hashes operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string
-
<static> run_analyse(input, args)
-
Analyse hash operation.
Parameters:
Name Type Description input
string args
Array.<Object> - Source:
Returns:
- Type
- string