Packages

package crypto

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. crypto
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type BufferLike = |[TypedArray[_, _], DataView]
  2. type Callback1[T] = Function2[Error, T, Any]
  3. type Callback2[T1, T2] = Function3[Error, T1, T2, Any]
  4. 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()
  5. trait CreateHashOptions extends Object with TransformOptions
    Annotations
    @JSType()
  6. trait CreatePrivateKeyOptions extends Object
    Annotations
    @JSType()
  7. trait CreatePublicKeyOptions extends Object
    Annotations
    @JSType()
  8. 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

  9. implicit final class CryptoModuleEnrichment extends AnyVal
  10. 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()
  11. trait DiffieHellman extends Object
    Annotations
    @JSType() @native()
  12. trait DiffieHellmanGroup extends Object
    Annotations
    @JSType() @native()
  13. trait DiffieHellmanOptions extends Object
    Annotations
    @JSType()
  14. trait ECDH extends Object
    Annotations
    @JSType() @native()
  15. trait GenerateKeyPairOptions extends Object
    Annotations
    @JSType()
  16. 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()
  17. 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()
  18. sealed trait KeyObject extends Object
    Annotations
    @JSType() @native()
  19. trait KeyObjectExportOptions extends Object
    Annotations
    @JSType()
  20. trait KeyPair extends Object
    Annotations
    @JSType() @native()
  21. trait PrivateDecryptKeyObject extends Object
    Annotations
    @JSType()
  22. trait PrivateEncryptKeyObject extends Object
    Annotations
    @JSType()
  23. trait PublicDecryptKeyObject extends Object
    Annotations
    @JSType()
  24. trait PublicEncryptKeyObject extends Object
    Annotations
    @JSType()
  25. trait ScryptOptions extends Object
    Annotations
    @JSType()
  26. trait SetAADOptions extends Object with TransformOptions
    Annotations
    @JSType()
  27. 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()
  28. 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

  1. object Certificate extends Object
    Annotations
    @native() @JSImport("crypto", "Certificate")
  2. object Constants extends Object
    Annotations
    @native() @JSImport("crypto", "constants")
  3. object CreateHashOptions
  4. object CreatePrivateKeyOptions
  5. object CreatePublicKeyOptions
  6. object Crypto extends Object with Crypto

    Crypto Singleton

    Crypto Singleton

    Annotations
    @native() @JSImport("crypto", JSImport.Namespace)
  7. object DiffieHellmanOptions
  8. object ECDH extends Object
    Annotations
    @native() @JSImport("crypto", "ECDH")
  9. object GenerateKeyPairOptions
  10. object KeyObjectExportOptions
  11. object PrivateDecryptKeyObject
  12. object PrivateEncryptKeyObject
  13. object PublicDecryptKeyObject
  14. object PublicEncryptKeyObject
  15. object ScryptOptions
  16. object SetAADOptions

Inherited from AnyRef

Inherited from Any

Ungrouped