Interfaces
Methods
SM createCipher(algorithm: string, password: any) crypto.Cipher
SM createCipheriv(algorithm: string, key: any, iv: any) crypto.Cipher
SM createCredentials(details: crypto.CredentialDetails) crypto.Credentials
SM createDecipher(algorithm: string, password: any) crypto.Decipher
SM createDecipheriv(algorithm: string, key: any, iv: any) crypto.Decipher
SM createDiffieHellman(prime_length: number) crypto.DiffieHellman
SM createDiffieHellman(prime: number, encoding: string) crypto.DiffieHellman
Parameters:
Name | Type | Argument |
---|---|---|
prime |
number | |
encoding |
string |
<optional> |
SM createHash(algorithm: string) crypto.Hash
SM createHmac(algorithm: string, key: string) crypto.Hmac
SM createHmac(algorithm: string, key: Buffer) crypto.Hmac
SM createSign(algorithm: string) crypto.Signer
SM createVerify(algorith: string) crypto.Verify
SM getDiffieHellman(group_name: string) crypto.DiffieHellman
SM pbkdf2(password: string, salt: string, iterations: number, keylen: number, callback: module:crypto.Pbkdf2CallbackCallback) void
Parameters:
Name | Type |
---|---|
password |
string |
salt |
string |
iterations |
number |
keylen |
number |
callback |
module:crypto.Pbkdf2CallbackCallback |
SM pbkdf2Sync(password: string, salt: string, iterations: number, keylen: number) Buffer
Parameters:
Name | Type |
---|---|
password |
string |
salt |
string |
iterations |
number |
keylen |
number |
SM pseudoRandomBytes(size: number, callback: module:crypto.PseudoRandomBytesCallbackCallback) void
Parameters:
Name | Type |
---|---|
size |
number |
callback |
module:crypto.PseudoRandomBytesCallbackCallback |
SM randomBytes(size: number, callback: module:crypto.RandomBytesCallbackCallback) void
Parameters:
Name | Type |
---|---|
size |
number |
callback |
module:crypto.RandomBytesCallbackCallback |