Module "crypto"
Index
Interfaces
Type aliases
Variables
Functions
- create
Cipher - create
Cipheriv - create
Credentials - create
Decipher - create
Decipheriv - create
Diffie Hellman - createECDH
- create
Hash - create
Hmac - create
Sign - create
Verify - get
Ciphers - get
Curves - get
Diffie Hellman - get
Hashes - pbkdf2
- pbkdf2
Sync - private
Decrypt - private
Encrypt - pseudo
Random Bytes - public
Decrypt - public
Encrypt - random
Bytes - timing
Safe Equal
Type aliases
ECDHKeyFormat
HexBase64BinaryEncoding
HexBase64Latin1Encoding
Utf8AsciiBinaryEncoding
Utf8AsciiLatin1Encoding
Variables
DEFAULT_ENCODING
fips
Functions
createCipher
-
Parameters
-
algorithm: string
-
password: any
Returns Cipher
-
createCipheriv
-
Parameters
-
algorithm: string
-
key: any
-
iv: any
Returns Cipher
-
createCredentials
-
Parameters
-
details: CredentialDetails
Returns Credentials
-
createDecipher
-
Parameters
-
algorithm: string
-
password: any
Returns Decipher
-
createDecipheriv
-
Parameters
-
algorithm: string
-
key: any
-
iv: any
Returns Decipher
-
createDiffieHellman
-
Parameters
-
prime_length: number
-
Optional generator: number
Returns DiffieHellman
-
-
Parameters
-
prime: Buffer
Returns DiffieHellman
-
-
Parameters
-
prime: string
-
prime_encoding: HexBase64Latin1Encoding
Returns DiffieHellman
-
-
Parameters
-
prime: string
-
prime_encoding: HexBase64Latin1Encoding
-
generator: number | Buffer
Returns DiffieHellman
-
-
Parameters
-
prime: string
-
prime_encoding: HexBase64Latin1Encoding
-
generator: string
-
generator_encoding: HexBase64Latin1Encoding
Returns DiffieHellman
-
createECDH
-
Parameters
-
curve_name: string
Returns ECDH
-
createHash
-
Parameters
-
algorithm: string
Returns Hash
-
createHmac
createSign
-
Parameters
-
algorithm: string
Returns Signer
-
createVerify
-
Parameters
-
algorith: string
Returns Verify
-
getCiphers
-
Returns string[]
getCurves
-
Returns string[]
getDiffieHellman
-
Parameters
-
group_name: string
Returns DiffieHellman
-
getHashes
-
Returns string[]
pbkdf2
pbkdf2Sync
privateDecrypt
-
Parameters
-
private_key: string | RsaPrivateKey
-
buffer: Buffer
Returns Buffer
-
privateEncrypt
-
Parameters
-
private_key: string | RsaPrivateKey
-
buffer: Buffer
Returns Buffer
-
pseudoRandomBytes
publicDecrypt
-
Parameters
-
public_key: string | RsaPublicKey
-
buffer: Buffer
Returns Buffer
-
publicEncrypt
-
Parameters
-
public_key: string | RsaPublicKey
-
buffer: Buffer
Returns Buffer
-
randomBytes
timingSafeEqual
Generated using TypeDoc