¶ CryptoAdapter |
|
¶ Exports: InstanceThis is a adapter to centralize the usage of different crypto modules |
|
¶ setModule
The the crypto module and set the method Params
[cryptoModule=`crypto`]
String
The module name of the used crypto module. Possible modules are the node internal "crypto" or the browser compatible "crypto" module
Returns
CryptoAdapter
A self reference
API
private
|
|
¶ hmacSha256
calculate a hmac shah 256 hash Params
secret
String
The secret to generate the hash
val
String
The value to generate the hash of
[secinp="hex"]
String
The input encoding of the secret. ( Enum:
hex , base64 , utf8 )
[out="hex"]
String
The output encoding of the generated hash. ( Enum:
hex , base64 , utf8 )
Returns
String
The generated hash
API
private
This is a virtual method that is generated by |
|
¶ _hmacSha256_Crypto
The node internal version of Params
secret
String
The secret to generate the hash
val
String
The value to generate the hash of
[secinp="hex"]
String
The input encoding of the secret. ( Enum:
hex , base64 , utf8 )
[out="hex"]
String
The output encoding of the generated hash. ( Enum:
hex , base64 , utf8 )
Returns
String
The generated hash
API
private
|
|
¶ _hmacSha256_CryptoJs
The browser version of Params
secret
String
The secret to generate the hash
val
String
The value to generate the hash of
[secinp="hex"]
String
The input encoding of the secret. ( Enum:
hex , base64 , utf8 )
[out="hex"]
String
The output encoding of the generated hash. ( Enum:
hex , base64 , utf8 )
Returns
String
The generated hash
API
private
|
|
¶ _cryptoJsEnc
Params
[enc="hex"]
String
The encoding key. ( Enum:
hex , base64 , utf8 )
Returns
CryptoJs.Enc
A crypto-js encoder
API
private
|
|
export a instance |