-
Notifications
You must be signed in to change notification settings - Fork 12
Home
Kind: global class
Access: public
-
CryptoApi
- new HasherInterface(name, options)
- instance
-
static
-
.EncodeInterface :
EncodeInterface -
.hash(algo, message, options) ⇒
HashArray -
.hasher(algo, options) ⇒
HasherInterface -
.hashArray(hash) ⇒
HashArray
-
.EncodeInterface :
| Param | Type |
|---|---|
| name | string |
| options | Object |
Kind: instance property of CryptoApi
Instanceof: Hashers Hashers
Kind: static property of CryptoApi
CryptoApi.hash(algo, message, options) ⇒ HashArray
Hash message with algo
Kind: static method of CryptoApi
Returns: HashArray - hash
Access: public
| Param | Type |
|---|---|
| algo | string |
| message | string |
| options | Object |
Get new Hasher object
Kind: static method of CryptoApi
Access: public
| Param | Type |
|---|---|
| algo | string |
| options | Object |
CryptoApi.hashArray(hash) ⇒ HashArray
Get new HashArray
Kind: static method of CryptoApi
Access: public
| Param | Type |
|---|---|
| hash | Array.<number> |
Array of hash bytes
Kind: global class
Instanceof: Array
| Param | Type |
|---|---|
| hash | Array.<number> |
| Encodes | Encodes |
Stringify hash
Kind: static method of HashArray
Md2 hasher
Kind: global class
Extends: HasherInterface
-
Md2 ⇐
HasherInterface-
.state :
Object -
.piSubst :
Array.<number> -
.unitSize :
number - .processBlock(block)
- .finalize()
-
.state :
Kind: static property of Md2
Hash state
Kind: static property of state
Checksum
Kind: static property of state
Constants from Pi
Kind: static property of Md2
Link: https://github.com/e-sushi/MD2-S-box-creator
Size of unit = 1 byte
Kind: static property of Md2
Kind: static method of Md2
| Param | Type |
|---|---|
| block | Array.<number> |
Kind: static method of Md2