package crypto
- Alphabetic
- Public
- All
Type Members
-
trait
Cipher
extends Object with Duplex
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()
-
class
Crypto
extends Object
Crypto Type Definition
Crypto Type Definition
- Annotations
- @RawJSType() @native()
-
trait
Decipher
extends Object with Duplex
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()
-
trait
Hash
extends Object with Duplex
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()
-
trait
Hmac
extends Object with Duplex
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()
-
trait
Sign
extends Object with Duplex
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()
-
trait
Verify
extends Object with Duplex
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()