Skip to content
nf404 edited this page Dec 9, 2015 · 24 revisions

Classes

CryptoApi

Main class

HashArray

Array of hash bytes

Md2HasherInterface

Md2 hasher

## CryptoApi Main class

Kind: global class
Access: public

new HasherInterface(name, options)

Param Type
name string
options Object

cryptoApi.Hashers

Kind: instance property of CryptoApi
Instanceof: Hashers Hashers

CryptoApi.EncodeInterface : EncodeInterface

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

CryptoApi.hasher(algo, options) ⇒ HasherInterface

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>

HashArray

Array of hash bytes

Kind: global class
Instanceof: Array

new HashArray(hash, Encodes)

Param Type
hash Array.<number>
Encodes Encodes

HashArray.stringify() ⇒ string

Stringify hash

Kind: static method of HashArray

Md2 ⇐ HasherInterface

Md2 hasher

Kind: global class
Extends: HasherInterface

Md2.state : Object

Kind: static property of Md2

state.hash : Array.<number>

Hash state

Kind: static property of state

state.checksum : Array.<number>

Checksum

Kind: static property of state

Md2.piSubst : Array.<number>

Constants from Pi

Kind: static property of Md2
Link: https://github.com/e-sushi/MD2-S-box-creator

Md2.unitSize : number

Size of unit = 1 byte

Kind: static property of Md2

Md2.processBlock(block)

Kind: static method of Md2

Param Type
block Array.<number>

Md2.finalize()

Kind: static method of Md2

Clone this wiki locally