package crypto
- Alphabetic
- By Inheritance
- crypto
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type BufferLike = |[TypedArray[_, _], DataView]
- type Callback1[T] = Function2[Error, T, Any]
- type Callback2[T1, T2] = Function3[Error, T1, T2, Any]
- sealed trait Cipher extends Transform
Instances of the Cipher class are used to encrypt data.
Instances of the Cipher class are used to encrypt data. The class can be used in one of two ways:
- As a stream that is both readable and writable, where plain unencrypted data is written to produce encrypted data on the readable side, or
- Using the cipher.update() and cipher.final() methods to produce the encrypted data.
The crypto.createCipher() or crypto.createCipheriv() methods are used to create Cipher instances. Cipher objects are not to be created directly using the new keyword.
- Annotations
- @JSType() @native()
- trait CreateHashOptions extends Object with TransformOptions
- Annotations
- @JSType()
- trait CreatePrivateKeyOptions extends Object
- Annotations
- @JSType()
- trait CreatePublicKeyOptions extends Object
- Annotations
- @JSType()
- trait Crypto extends Object
The crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign and verify functions.
The crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign and verify functions.
- Annotations
- @JSType() @native()
- See also
https://nodejs.org/dist/latest-v7.x/docs/api/crypto.html#crypto_crypto
- implicit final class CryptoModuleEnrichment extends AnyVal
- sealed trait Decipher extends Transform
Instances of the Decipher class are used to decrypt data.
Instances of the Decipher class are used to decrypt data. The class can be used in one of two ways:
- As a stream that is both readable and writable, where plain encrypted data is written to produce unencrypted data on the readable side, or
- Using the decipher.update() and decipher.final() methods to produce the unencrypted data.
The crypto.createDecipher() or crypto.createDecipheriv() methods are used to create Decipher instances. Decipher objects are not to be created directly using the new keyword.
- Annotations
- @JSType() @native()
- trait DiffieHellman extends Object
- Annotations
- @JSType() @native()
- trait DiffieHellmanGroup extends Object
- Annotations
- @JSType() @native()
- trait DiffieHellmanOptions extends Object
- Annotations
- @JSType()
- trait ECDH extends Object
- Annotations
- @JSType() @native()
- trait GenerateKeyPairOptions extends Object
- Annotations
- @JSType()
- sealed trait Hash extends Transform
The Hash class is a utility for creating hash digests of data.
The Hash class is a utility for creating hash digests of data. It can be used in one of two ways:
- As a stream that is both readable and writable, where data is written to produce a computed hash digest on the readable side, or
- Using the hash.update() and hash.digest() methods to produce the computed hash.
The crypto.createHash() method is used to create Hash instances. Hash objects are not to be created directly using the new keyword.
- Annotations
- @JSType() @native()
- sealed trait Hmac extends Transform
The Hmac Class is a utility for creating cryptographic HMAC digests.
The Hmac Class is a utility for creating cryptographic HMAC digests. It can be used in one of two ways:
- As a stream that is both readable and writable, where data is written to produce a computed HMAC digest on the readable side, or
- Using the hmac.update() and hmac.digest() methods to produce the computed HMAC digest.
The crypto.createHmac() method is used to create Hmac instances. Hmac objects are not to be created directly using the new keyword.
- Annotations
- @JSType() @native()
- sealed trait KeyObject extends Object
- Annotations
- @JSType() @native()
- trait KeyObjectExportOptions extends Object
- Annotations
- @JSType()
- trait KeyPair extends Object
- Annotations
- @JSType() @native()
- trait PrivateDecryptKeyObject extends Object
- Annotations
- @JSType()
- trait PrivateEncryptKeyObject extends Object
- Annotations
- @JSType()
- trait PublicDecryptKeyObject extends Object
- Annotations
- @JSType()
- trait PublicEncryptKeyObject extends Object
- Annotations
- @JSType()
- trait ScryptOptions extends Object
- Annotations
- @JSType()
- trait SetAADOptions extends Object with TransformOptions
- Annotations
- @JSType()
- sealed trait Sign extends Writable
The Sign Class is a utility for generating signatures.
The Sign Class is a utility for generating signatures. It can be used in one of two ways:
- As a writable stream, where data to be signed is written and the sign.sign() method is used to generate and return the signature, or
- Using the sign.update() and sign.sign() methods to produce the signature.
The crypto.createSign() method is used to create Sign instances. Sign objects are not to be created directly using the new keyword.
- Annotations
- @JSType() @native()
- trait Verify extends Writable
The Verify class is a utility for verifying signatures.
The Verify class is a utility for verifying signatures. It can be used in one of two ways:
- As a writable stream where written data is used to validate against the supplied signature, or
- Using the verify.update() and verify.verify() methods to verify the signature.
The crypto.createSign() method is used to create Sign instances. Sign objects are not to be created directly using the new keyword.
- Annotations
- @JSType() @native()
Value Members
- object Certificate extends Object
- Annotations
- @native() @JSImport("crypto", "Certificate")
- object Constants extends Object
- Annotations
- @native() @JSImport("crypto", "constants")
- object CreateHashOptions
- object CreatePrivateKeyOptions
- object CreatePublicKeyOptions
- object Crypto extends Object with Crypto
Crypto Singleton
Crypto Singleton
- Annotations
- @native() @JSImport("crypto", JSImport.Namespace)
- object DiffieHellmanOptions
- object ECDH extends Object
- Annotations
- @native() @JSImport("crypto", "ECDH")
- object GenerateKeyPairOptions
- object KeyObjectExportOptions
- object PrivateDecryptKeyObject
- object PrivateEncryptKeyObject
- object PublicDecryptKeyObject
- object PublicEncryptKeyObject
- object ScryptOptions
- object SetAADOptions