Package

io.scalajs.nodejs

crypto

Permalink

package crypto

Visibility
  1. Public
  2. All

Type Members

  1. trait Cipher extends Object with IDuplex

    Permalink

    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()
  2. trait Crypto extends Object

    Permalink

    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

  3. trait Decipher extends Object with IDuplex

    Permalink

    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()
  4. trait Hash extends Object with IDuplex

    Permalink

    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()
  5. trait Hmac extends Object with IDuplex

    Permalink

    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()
  6. trait Sign extends Object with IDuplex

    Permalink

    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()
  7. trait Verify extends Object with IDuplex

    Permalink

    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 Crypto extends Object with Crypto

    Permalink

    Crypto Singleton

    Crypto Singleton

    Annotations
    @native() @JSImport( "crypto" , JSImport.Namespace )

Ungrouped