- Source:
Requires
Members
-
<static> md5
-
- Source:
- See:
-
<static> ripemd
-
- Source:
- See:
-
<static> sha1
-
- Source:
- See:
-
<static> sha224
-
- Source:
- See:
-
<static> sha256
-
- Source:
- See:
-
<static> sha384
-
- Source:
- See:
-
<static> sha512
-
- Source:
- See:
Methods
-
<static> digest(algo, data) → {String}
-
Create a hash on the specified data using the specified algorithm
Parameters:
Name Type Description algo
Integer Hash algorithm type (see RFC4880 9.4) data
String Data to be hashed - Source:
Returns:
hash value- Type
- String
-
<static> getHashByteLength(algo) → {Integer}
-
Returns the hash size in bytes of the specified hash algorithm type
Parameters:
Name Type Description algo
Integer Hash algorithm type (See RFC4880 9.4) - Source:
Returns:
Size in bytes of the resulting hash- Type
- Integer