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. class Certificate extends Object
    Annotations
    @RawJSType() @native() @JSImport("crypto", "Certificate")
  5. 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
    @RawJSType() @native()
  6. class CreateHashOptions extends TransformOptions
    Annotations
    @ScalaJSDefined() @RawJSType()
  7. class CreatePrivateKeyOptions extends Object
    Annotations
    @ScalaJSDefined() @RawJSType()
  8. class CreatePublicKeyOptions extends Object
    Annotations
    @ScalaJSDefined() @RawJSType()
  9. 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
    @RawJSType() @native()
    See also

    https://nodejs.org/dist/latest-v7.x/docs/api/crypto.html#crypto_crypto

  10. implicit final class CryptoModuleEnrichment extends AnyVal
  11. 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
    @RawJSType() @native()
  12. trait DiffieHellman extends Object
    Annotations
    @RawJSType() @native()
  13. trait DiffieHellmanGroup extends Object
    Annotations
    @RawJSType() @native()
  14. trait ECDH extends Object
    Annotations
    @RawJSType() @native()
  15. class GenerateKeyPairOptions extends Object
    Annotations
    @ScalaJSDefined() @RawJSType()
  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
    @RawJSType() @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
    @RawJSType() @native()
  18. sealed trait KeyObject extends Object
    Annotations
    @RawJSType() @native()
  19. class KeyObjectExportOptions extends Object
    Annotations
    @ScalaJSDefined() @RawJSType()
  20. trait KeyPair extends Object
    Annotations
    @RawJSType() @native()
  21. class ScryptOptions extends Object
    Annotations
    @ScalaJSDefined() @RawJSType()
  22. class SetAADOptions extends TransformOptions
    Annotations
    @ScalaJSDefined() @RawJSType()
  23. 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
    @RawJSType() @native()
  24. 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
    @RawJSType() @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 Crypto extends Object with Crypto

    Crypto Singleton

    Crypto Singleton

    Annotations
    @native() @JSImport("crypto", JSImport.Namespace)
  4. object ECDH extends Object
    Annotations
    @native() @JSImport("crypto", "ECDH")

Inherited from AnyRef

Inherited from Any

Ungrouped