package cryptoMod
- Source
- package.scala
- Alphabetic
- By Inheritance
- cryptoMod
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait AsymmetricKeyDetails extends Object with StObject
- Annotations
- @JSType() @native()
- trait BasePrivateKeyEncodingOptions[T] extends Object with StObject
- Annotations
- @JSType() @native()
- type BinaryLike = |[java.lang.String, ArrayBufferView]
- trait BinaryToTextEncoding extends Object with StObject
- Annotations
- @JSType()
- trait Certificate extends Object with StObject
- Annotations
- @JSType() @native()
- class CertificateCls extends Object with StObject with Certificate
- Annotations
- @JSType() @JSImport("crypto", "Certificate") @native()
- trait CharacterEncoding extends Object with StObject
- Annotations
- @JSType()
- trait CheckPrimeOptions extends Object with StObject
- Annotations
- @JSType() @native()
- class Cipher extends Object with StObject
- Annotations
- @JSType() @JSImport("crypto", "Cipher") @native()
- trait CipherCCM extends Object with StObject
- Annotations
- @JSType() @native()
- trait CipherCCMOptions extends Object with StObject with TransformOptions
- Annotations
- @JSType() @native()
- trait CipherCCMTypes extends Object with StObject
- Annotations
- @JSType()
- trait CipherGCM extends Object with StObject
- Annotations
- @JSType() @native()
- trait CipherGCMOptions extends Object with StObject with TransformOptions
- Annotations
- @JSType() @native()
- trait CipherGCMTypes extends Object with StObject
- Annotations
- @JSType()
- trait CipherInfo extends Object with StObject
- Annotations
- @JSType() @native()
- trait CipherInfoOptions extends Object with StObject
- Annotations
- @JSType() @native()
- type CipherKey = |[BinaryLike, KeyObject]
- trait CipherMode extends Object with StObject
- Annotations
- @JSType()
- trait DSAEncoding extends Object with StObject
- Annotations
- @JSType()
- trait DSAKeyPairKeyObjectOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait DSAKeyPairOptions[PubF, PrivF] extends Object with StObject
- Annotations
- @JSType() @native()
- class Decipher extends Object with StObject
- Annotations
- @JSType() @JSImport("crypto", "Decipher") @native()
- trait DecipherCCM extends Object with StObject
- Annotations
- @JSType() @native()
- trait DecipherGCM extends Object with StObject
- Annotations
- @JSType() @native()
- class DiffieHellman_ extends Object with StObject
- Annotations
- @JSType() @JSImport("crypto", "DiffieHellman") @native()
- class ECDH extends Object with StObject
- Annotations
- @JSType() @JSImport("crypto", "ECDH") @native()
- trait ECDHKeyFormat extends Object with StObject
- Annotations
- @JSType()
- trait ECKeyPairKeyObjectOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait ECKeyPairOptions[PubF, PrivF] extends Object with StObject
- Annotations
- @JSType() @native()
- trait ED25519KeyPairKeyObjectOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait ED25519KeyPairOptions[PubF, PrivF] extends Object with StObject
- Annotations
- @JSType() @native()
- trait ED448KeyPairKeyObjectOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait ED448KeyPairOptions[PubF, PrivF] extends Object with StObject
- Annotations
- @JSType() @native()
- trait Encoding extends Object with StObject
- Annotations
- @JSType()
- trait GeneratePrimeOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait GeneratePrimeOptionsArrayBuffer extends Object with StObject with GeneratePrimeOptions
- Annotations
- @JSType() @native()
- trait GeneratePrimeOptionsBigInt extends Object with StObject with GeneratePrimeOptions
- Annotations
- @JSType() @native()
- class Hash extends Object with StObject
- Annotations
- @JSType() @JSImport("crypto", "Hash") @native()
- trait HashOptions extends Object with StObject with TransformOptions
- Annotations
- @JSType() @native()
- class Hmac extends Object with StObject
- Annotations
- @JSType() @JSImport("crypto", "Hmac") @native()
- trait JsonWebKey extends Object with StObject with StringDictionary[Any]
- Annotations
- @JSType() @native()
- trait JsonWebKeyInput extends Object with StObject
- Annotations
- @JSType() @native()
- trait JwkKeyExportOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait KeyExportOptions[T] extends Object with StObject
- Annotations
- @JSType() @native()
- trait KeyFormat extends Object with StObject
- Annotations
- @JSType()
- type KeyLike = |[_KeyLike, java.lang.String]
- class KeyObject extends Object with StObject with _KeyLike
- Annotations
- @JSType() @JSImport("crypto", "KeyObject") @native()
- trait KeyObjectType extends Object with StObject
- Annotations
- @JSType()
- trait KeyPairKeyObjectResult extends Object with StObject
- Annotations
- @JSType() @native()
- trait KeyPairSyncResult[T1, T2] extends Object with StObject
- Annotations
- @JSType() @native()
- trait KeyType extends Object with StObject
- Annotations
- @JSType()
- type LargeNumberLike = |[|[|[ArrayBufferView, SharedArrayBuffer], ArrayBuffer], BigInt]
- trait LegacyCharacterEncoding extends Object with StObject
- Annotations
- @JSType()
- trait PrivateKeyInput extends Object with StObject
- Annotations
- @JSType() @native()
- trait PublicKeyInput extends Object with StObject
- Annotations
- @JSType() @native()
- trait RSAKeyPairKeyObjectOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait RSAKeyPairOptions[PubF, PrivF] extends Object with StObject
- Annotations
- @JSType() @native()
- trait RandomUUIDOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait RsaPrivateKey extends Object with StObject
- Annotations
- @JSType() @native()
- trait RsaPublicKey extends Object with StObject
- Annotations
- @JSType() @native()
- trait ScryptOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait SecureHeapUsage extends Object with StObject
- Annotations
- @JSType() @native()
- trait SignKeyObjectInput extends Object with StObject with SigningOptions
- Annotations
- @JSType() @native()
- trait SignPrivateKeyInput extends Object with StObject with PrivateKeyInput with SigningOptions
- Annotations
- @JSType() @native()
- class Signer extends Object with StObject
- Annotations
- @JSType() @JSImport("crypto", "Signer") @native()
- trait SigningOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait VerifyKeyObjectInput extends Object with StObject with SigningOptions
- Annotations
- @JSType() @native()
- trait VerifyPublicKeyInput extends Object with StObject with PublicKeyInput with SigningOptions
- Annotations
- @JSType() @native()
- class Verify_ extends Object with StObject
- Annotations
- @JSType() @JSImport("crypto", "Verify") @native()
- trait X25519KeyPairKeyObjectOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait X25519KeyPairOptions[PubF, PrivF] extends Object with StObject
- Annotations
- @JSType() @native()
- trait X448KeyPairKeyObjectOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait X448KeyPairOptions[PubF, PrivF] extends Object with StObject
- Annotations
- @JSType() @native()
- class X509Certificate extends Object with StObject with _TransferListItem
- Annotations
- @JSType() @JSImport("crypto", "X509Certificate") @native()
- trait X509CheckOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait _KeyLike extends Object with StObject
- Annotations
- @JSType()
Value Members
- def checkPrime(value: LargeNumberLike, options: CheckPrimeOptions, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def checkPrime(value: LargeNumberLike, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
Checks the primality of the candidate.
Checks the primality of the candidate.
- Annotations
- @inline()
- def checkPrimeSync(value: LargeNumberLike, options: CheckPrimeOptions): Boolean
- Annotations
- @inline()
- def checkPrimeSync(value: LargeNumberLike): Boolean
Checks the primality of the candidate.
Checks the primality of the candidate.
- Annotations
- @inline()
- def createCipher(algorithm: java.lang.String, password: BinaryLike, options: TransformOptions): Cipher
- Annotations
- @inline()
- def createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options: CipherGCMOptions): CipherGCM
- Annotations
- @inline()
- def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: Null, options: TransformOptions): Cipher
- Annotations
- @inline()
- def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike, options: TransformOptions): Cipher
- Annotations
- @inline()
- def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike): Cipher
- Annotations
- @inline()
- def createCipheriv(algorithm: java.lang.String, key: CipherKey): Cipher
- Annotations
- @inline()
- def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: Null, options: CipherGCMOptions): CipherGCM
- Annotations
- @inline()
- def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options: CipherGCMOptions): CipherGCM
- Annotations
- @inline()
- def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike): CipherGCM
- Annotations
- @inline()
- def createCipheriv(algorithm: CipherGCMTypes, key: CipherKey): CipherGCM
- Annotations
- @inline()
- def createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: Null, options: CipherCCMOptions): CipherCCM
- Annotations
- @inline()
- def createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): CipherCCM
- Annotations
- @inline()
- def createDecipher(algorithm: java.lang.String, password: BinaryLike, options: TransformOptions): Decipher
- Annotations
- @inline()
- def createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options: CipherGCMOptions): DecipherGCM
- Annotations
- @inline()
- def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: Null, options: TransformOptions): Decipher
- Annotations
- @inline()
- def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike, options: TransformOptions): Decipher
- Annotations
- @inline()
- def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike): Decipher
- Annotations
- @inline()
- def createDecipheriv(algorithm: java.lang.String, key: CipherKey): Decipher
- Annotations
- @inline()
- def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: Null, options: CipherGCMOptions): DecipherGCM
- Annotations
- @inline()
- def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options: CipherGCMOptions): DecipherGCM
- Annotations
- @inline()
- def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike): DecipherGCM
- Annotations
- @inline()
- def createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey): DecipherGCM
- Annotations
- @inline()
- def createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: Null, options: CipherCCMOptions): DecipherCCM
- Annotations
- @inline()
- def createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): DecipherCCM
- Annotations
- @inline()
- def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: Double): DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: java.lang.String, generator_encoding: BinaryToTextEncoding): DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: ArrayBufferView): DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding): DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime: ArrayBufferView): DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime_length: Double, generator: Double): DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime_length: Double, generator: ArrayBufferView): DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime_length: Double): DiffieHellman_
- Annotations
- @inline()
- def createECDH(curve_name: java.lang.String): ECDH
- Annotations
- @inline()
- def createHash(algorithm: java.lang.String, options: HashOptions): Hash
- Annotations
- @inline()
- def createHash(algorithm: java.lang.String): Hash
- Annotations
- @inline()
- def createHmac(algorithm: java.lang.String, key: KeyObject, options: TransformOptions): Hmac
- Annotations
- @inline()
- def createHmac(algorithm: java.lang.String, key: KeyObject): Hmac
- Annotations
- @inline()
- def createHmac(algorithm: java.lang.String, key: BinaryLike, options: TransformOptions): Hmac
- Annotations
- @inline()
- def createHmac(algorithm: java.lang.String, key: BinaryLike): Hmac
- Annotations
- @inline()
- def createPrivateKey(key: java.lang.String): KeyObject
- Annotations
- @inline()
- def createPrivateKey(key: PrivateKeyInput): KeyObject
- Annotations
- @inline()
- def createPrivateKey(key: JsonWebKeyInput): KeyObject
- Annotations
- @inline()
- def createPrivateKey(key: Buffer): KeyObject
- Annotations
- @inline()
- def createPublicKey(key: java.lang.String): KeyObject
- Annotations
- @inline()
- def createPublicKey(key: PublicKeyInput): KeyObject
- Annotations
- @inline()
- def createPublicKey(key: KeyObject): KeyObject
- Annotations
- @inline()
- def createPublicKey(key: JsonWebKeyInput): KeyObject
- Annotations
- @inline()
- def createPublicKey(key: Buffer): KeyObject
- Annotations
- @inline()
- def createSecretKey(key: ArrayBufferView): KeyObject
- Annotations
- @inline()
- def createSign(algorithm: java.lang.String, options: WritableOptions): Signer
- Annotations
- @inline()
- def createSign(algorithm: java.lang.String): Signer
- Annotations
- @inline()
- def createVerify(algorithm: java.lang.String, options: WritableOptions): Verify_
- Annotations
- @inline()
- def createVerify(algorithm: java.lang.String): Verify_
- Annotations
- @inline()
- def diffieHellman(options: PrivateKey): Buffer
Computes the Diffie-Hellman secret based on a privateKey and a publicKey.
Computes the Diffie-Hellman secret based on a privateKey and a publicKey. Both keys must have the same asymmetricKeyType, which must be one of 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES).
- Annotations
- @inline()
- def generateKeyPair(type: x448, options: Unit, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: x448, options: X448KeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: x448, options: X448KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: x25519, options: Unit, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: x25519, options: X25519KeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: x25519, options: X25519KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: rsa, options: RSAKeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: rsa, options: RSAKeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ed448, options: Unit, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ed448, options: ED448KeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ed448, options: ED448KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ed25519, options: Unit, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ed25519, options: ED25519KeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ed25519, options: ED25519KeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ec, options: ECKeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ec, options: ECKeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: dsa, options: DSAKeyPairOptions[|[der, pem], |[der, pem]], callback: Function3[|[Error, Null], |[Buffer, java.lang.String], |[Buffer, java.lang.String], Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: dsa, options: DSAKeyPairKeyObjectOptions, callback: Function3[|[Error, Null], KeyObject, KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPairSync(type: x448, options: X448KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
- Annotations
- @inline()
- def generateKeyPairSync(type: x25519, options: X25519KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
- Annotations
- @inline()
- def generateKeyPairSync(type: rsa, options: RSAKeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
- Annotations
- @inline()
- def generateKeyPairSync(type: ed448, options: ED448KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
- Annotations
- @inline()
- def generateKeyPairSync(type: ed25519, options: ED25519KeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
- Annotations
- @inline()
- def generateKeyPairSync(type: ec, options: ECKeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
- Annotations
- @inline()
- def generateKeyPairSync(type: dsa, options: DSAKeyPairOptions[|[der, pem], |[der, pem]]): KeyPairSyncResult[java.lang.String, java.lang.String]
- Annotations
- @inline()
- def generateKeyPairSync_dsa(type: dsa, options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_ec(type: ec, options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_ed25519(type: ed25519, options: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_ed25519(type: ed25519): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_ed448(type: ed448, options: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_ed448(type: ed448): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_rsa(type: rsa, options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_x25519(type: x25519, options: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_x25519(type: x25519): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_x448(type: x448, options: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKeyPairSync_x448(type: x448): KeyPairKeyObjectResult
- Annotations
- @inline()
- def generateKey_aes(type: aes, options: Length, callback: Function2[|[Error, Null], KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKey_hmac(type: hmac, options: Length, callback: Function2[|[Error, Null], KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generatePrime(size: Double, options: GeneratePrimeOptions, callback: Function2[|[Error, Null], |[ArrayBuffer, BigInt], Unit]): Unit
- Annotations
- @inline()
- def generatePrime(size: Double, options: GeneratePrimeOptionsBigInt, callback: Function2[|[Error, Null], BigInt, Unit]): Unit
- Annotations
- @inline()
- def generatePrime(size: Double, options: GeneratePrimeOptionsArrayBuffer, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
- Annotations
- @inline()
- def generatePrime(size: Double, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
- Annotations
- @inline()
- def generatePrimeSync(size: Double, options: GeneratePrimeOptionsBigInt): BigInt
- Annotations
- @inline()
- def generatePrimeSync(size: Double, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer
- Annotations
- @inline()
- def generatePrimeSync(size: Double, options: GeneratePrimeOptions): |[ArrayBuffer, BigInt]
- Annotations
- @inline()
- def generatePrimeSync(size: Double): ArrayBuffer
- Annotations
- @inline()
- def getCipherInfo(nameOrNid: Double, options: CipherInfoOptions): UndefOr[CipherInfo]
- Annotations
- @inline()
- def getCipherInfo(nameOrNid: Double): UndefOr[CipherInfo]
- Annotations
- @inline()
- def getCipherInfo(nameOrNid: java.lang.String, options: CipherInfoOptions): UndefOr[CipherInfo]
- Annotations
- @inline()
- def getCipherInfo(nameOrNid: java.lang.String): UndefOr[CipherInfo]
Returns information about a given cipher.
Returns information about a given cipher.
Some ciphers accept variable length keys and initialization vectors. By default, the
crypto.getCipherInfo()method will return the default values for these ciphers. To test if a given key length or iv length is acceptable for given cipher, use thekeyLenthandivLenthoptions. If the given values are unacceptable,undefinedwill be returned.- nameOrNid
The name or nid of the cipher to query.
- Annotations
- @inline()
- def getCiphers(): Array[java.lang.String]
- Annotations
- @inline()
- def getCurves(): Array[java.lang.String]
- Annotations
- @inline()
- def getDiffieHellman(group_name: java.lang.String): DiffieHellman_
- Annotations
- @inline()
- def getFips(): |[1, 0]
- Annotations
- @inline()
- def getHashes(): Array[java.lang.String]
- Annotations
- @inline()
- def hkdf(digest: java.lang.String, key: KeyObject, salt: BinaryLike, info: BinaryLike, keylen: Double, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
- Annotations
- @inline()
- def hkdf(digest: java.lang.String, key: BinaryLike, salt: BinaryLike, info: BinaryLike, keylen: Double, callback: Function2[|[Error, Null], ArrayBuffer, Unit]): Unit
HKDF is a simple key derivation function defined in RFC 5869.
HKDF is a simple key derivation function defined in RFC 5869. The given
key,saltandinfoare used with thedigestto derive a key ofkeylenbytes.The supplied
callbackfunction is called with two arguments:errandderivedKey. If an errors occurs while deriving the key,errwill be set; otherwiseerrwill benull. The successfully generatedderivedKeywill be passed to the callback as anArrayBuffer. An error will be thrown if any of the input aguments specify invalid values or types.- Annotations
- @inline()
- def hkdfSync(digest: java.lang.String, key: KeyObject, salt: BinaryLike, info: BinaryLike, keylen: Double): ArrayBuffer
- Annotations
- @inline()
- def hkdfSync(digest: java.lang.String, key: BinaryLike, salt: BinaryLike, info: BinaryLike, keylen: Double): ArrayBuffer
Provides a synchronous HKDF key derivation function as defined in RFC 5869.
Provides a synchronous HKDF key derivation function as defined in RFC 5869. The given
key,saltandinfoare used with thedigestto derive a key ofkeylenbytes.The successfully generated
derivedKeywill be returned as anArrayBuffer. An error will be thrown if any of the input aguments specify invalid values or types, or if the derived key cannot be generated.- Annotations
- @inline()
- def pbkdf2(password: BinaryLike, salt: BinaryLike, iterations: Double, keylen: Double, digest: java.lang.String, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: Double, keylen: Double, digest: java.lang.String): Buffer
- Annotations
- @inline()
- def privateDecrypt(private_key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def privateDecrypt(private_key: KeyLike, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def privateEncrypt(private_key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def privateEncrypt(private_key: KeyLike, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def pseudoRandomBytes(size: Double, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def pseudoRandomBytes(size: Double): Buffer
- Annotations
- @inline()
- def publicDecrypt(key: RsaPublicKey, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def publicDecrypt(key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def publicDecrypt(key: KeyLike, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def publicEncrypt(key: RsaPublicKey, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def publicEncrypt(key: RsaPrivateKey, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def publicEncrypt(key: KeyLike, buffer: ArrayBufferView): Buffer
- Annotations
- @inline()
- def randomBytes(size: Double, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def randomBytes(size: Double): Buffer
- Annotations
- @inline()
- def randomFill(buffer: Uint8ClampedArray, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint8ClampedArray, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint8ClampedArray, offset: Double, callback: Function2[|[Error, Null], Uint8ClampedArray, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint8ClampedArray, callback: Function2[|[Error, Null], Uint8ClampedArray, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint8Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint8Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint8Array, offset: Double, callback: Function2[|[Error, Null], Uint8Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint8Array, callback: Function2[|[Error, Null], Uint8Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint32Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint32Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint32Array, offset: Double, callback: Function2[|[Error, Null], Uint32Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint32Array, callback: Function2[|[Error, Null], Uint32Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint16Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Uint16Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint16Array, offset: Double, callback: Function2[|[Error, Null], Uint16Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Uint16Array, callback: Function2[|[Error, Null], Uint16Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Int8Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Int8Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Int8Array, offset: Double, callback: Function2[|[Error, Null], Int8Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Int8Array, callback: Function2[|[Error, Null], Int8Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Int32Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Int32Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Int32Array, offset: Double, callback: Function2[|[Error, Null], Int32Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Int32Array, callback: Function2[|[Error, Null], Int32Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Int16Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Int16Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Int16Array, offset: Double, callback: Function2[|[Error, Null], Int16Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Int16Array, callback: Function2[|[Error, Null], Int16Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Float64Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Float64Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Float64Array, offset: Double, callback: Function2[|[Error, Null], Float64Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Float64Array, callback: Function2[|[Error, Null], Float64Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Float32Array, offset: Double, size: Double, callback: Function2[|[Error, Null], Float32Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Float32Array, offset: Double, callback: Function2[|[Error, Null], Float32Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: Float32Array, callback: Function2[|[Error, Null], Float32Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: DataView, offset: Double, size: Double, callback: Function2[|[Error, Null], DataView, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: DataView, offset: Double, callback: Function2[|[Error, Null], DataView, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: DataView, callback: Function2[|[Error, Null], DataView, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: BigUint64Array, offset: Double, size: Double, callback: Function2[|[Error, Null], BigUint64Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: BigUint64Array, offset: Double, callback: Function2[|[Error, Null], BigUint64Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: BigUint64Array, callback: Function2[|[Error, Null], BigUint64Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: BigInt64Array, offset: Double, size: Double, callback: Function2[|[Error, Null], BigInt64Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: BigInt64Array, offset: Double, callback: Function2[|[Error, Null], BigInt64Array, Unit]): Unit
- Annotations
- @inline()
- def randomFill(buffer: BigInt64Array, callback: Function2[|[Error, Null], BigInt64Array, Unit]): Unit
- Annotations
- @inline()
- def randomFillSync(buffer: Uint8ClampedArray, offset: Unit, size: Double): Uint8ClampedArray
- Annotations
- @inline()
- def randomFillSync(buffer: Uint8ClampedArray, offset: Double, size: Double): Uint8ClampedArray
- Annotations
- @inline()
- def randomFillSync(buffer: Uint8ClampedArray, offset: Double): Uint8ClampedArray
- Annotations
- @inline()
- def randomFillSync(buffer: Uint8ClampedArray): Uint8ClampedArray
- Annotations
- @inline()
- def randomFillSync(buffer: Uint8Array, offset: Unit, size: Double): Uint8Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint8Array, offset: Double, size: Double): Uint8Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint8Array, offset: Double): Uint8Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint8Array): Uint8Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint32Array, offset: Unit, size: Double): Uint32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint32Array, offset: Double, size: Double): Uint32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint32Array, offset: Double): Uint32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint32Array): Uint32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint16Array, offset: Unit, size: Double): Uint16Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint16Array, offset: Double, size: Double): Uint16Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint16Array, offset: Double): Uint16Array
- Annotations
- @inline()
- def randomFillSync(buffer: Uint16Array): Uint16Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int8Array, offset: Unit, size: Double): Int8Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int8Array, offset: Double, size: Double): Int8Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int8Array, offset: Double): Int8Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int8Array): Int8Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int32Array, offset: Unit, size: Double): Int32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int32Array, offset: Double, size: Double): Int32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int32Array, offset: Double): Int32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int32Array): Int32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int16Array, offset: Unit, size: Double): Int16Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int16Array, offset: Double, size: Double): Int16Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int16Array, offset: Double): Int16Array
- Annotations
- @inline()
- def randomFillSync(buffer: Int16Array): Int16Array
- Annotations
- @inline()
- def randomFillSync(buffer: Float64Array, offset: Unit, size: Double): Float64Array
- Annotations
- @inline()
- def randomFillSync(buffer: Float64Array, offset: Double, size: Double): Float64Array
- Annotations
- @inline()
- def randomFillSync(buffer: Float64Array, offset: Double): Float64Array
- Annotations
- @inline()
- def randomFillSync(buffer: Float64Array): Float64Array
- Annotations
- @inline()
- def randomFillSync(buffer: Float32Array, offset: Unit, size: Double): Float32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Float32Array, offset: Double, size: Double): Float32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Float32Array, offset: Double): Float32Array
- Annotations
- @inline()
- def randomFillSync(buffer: Float32Array): Float32Array
- Annotations
- @inline()
- def randomFillSync(buffer: DataView, offset: Unit, size: Double): DataView
- Annotations
- @inline()
- def randomFillSync(buffer: DataView, offset: Double, size: Double): DataView
- Annotations
- @inline()
- def randomFillSync(buffer: DataView, offset: Double): DataView
- Annotations
- @inline()
- def randomFillSync(buffer: DataView): DataView
- Annotations
- @inline()
- def randomFillSync(buffer: BigUint64Array, offset: Unit, size: Double): BigUint64Array
- Annotations
- @inline()
- def randomFillSync(buffer: BigUint64Array, offset: Double, size: Double): BigUint64Array
- Annotations
- @inline()
- def randomFillSync(buffer: BigUint64Array, offset: Double): BigUint64Array
- Annotations
- @inline()
- def randomFillSync(buffer: BigUint64Array): BigUint64Array
- Annotations
- @inline()
- def randomFillSync(buffer: BigInt64Array, offset: Unit, size: Double): BigInt64Array
- Annotations
- @inline()
- def randomFillSync(buffer: BigInt64Array, offset: Double, size: Double): BigInt64Array
- Annotations
- @inline()
- def randomFillSync(buffer: BigInt64Array, offset: Double): BigInt64Array
- Annotations
- @inline()
- def randomFillSync(buffer: BigInt64Array): BigInt64Array
- Annotations
- @inline()
- def randomInt(min: Double, max: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
- Annotations
- @inline()
- def randomInt(min: Double, max: Double): Double
- Annotations
- @inline()
- def randomInt(max: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
- Annotations
- @inline()
- def randomInt(max: Double): Double
- Annotations
- @inline()
- def randomUUID(options: RandomUUIDOptions): java.lang.String
- Annotations
- @inline()
- def randomUUID(): java.lang.String
- Annotations
- @inline()
- def scrypt(password: BinaryLike, salt: BinaryLike, keylen: Double, options: ScryptOptions, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def scrypt(password: BinaryLike, salt: BinaryLike, keylen: Double, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def scryptSync(password: BinaryLike, salt: BinaryLike, keylen: Double, options: ScryptOptions): Buffer
- Annotations
- @inline()
- def scryptSync(password: BinaryLike, salt: BinaryLike, keylen: Double): Buffer
- Annotations
- @inline()
- def secureHeapUsed(): SecureHeapUsage
- Annotations
- @inline()
- def sign(algorithm: Unit, data: ArrayBufferView, key: SignPrivateKeyInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def sign(algorithm: Unit, data: ArrayBufferView, key: SignPrivateKeyInput): Buffer
- Annotations
- @inline()
- def sign(algorithm: Unit, data: ArrayBufferView, key: SignKeyObjectInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def sign(algorithm: Unit, data: ArrayBufferView, key: SignKeyObjectInput): Buffer
- Annotations
- @inline()
- def sign(algorithm: Unit, data: ArrayBufferView, key: KeyLike, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def sign(algorithm: Unit, data: ArrayBufferView, key: KeyLike): Buffer
- Annotations
- @inline()
- def sign(algorithm: Null, data: ArrayBufferView, key: SignPrivateKeyInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def sign(algorithm: Null, data: ArrayBufferView, key: SignPrivateKeyInput): Buffer
- Annotations
- @inline()
- def sign(algorithm: Null, data: ArrayBufferView, key: SignKeyObjectInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def sign(algorithm: Null, data: ArrayBufferView, key: SignKeyObjectInput): Buffer
- Annotations
- @inline()
- def sign(algorithm: Null, data: ArrayBufferView, key: KeyLike, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def sign(algorithm: Null, data: ArrayBufferView, key: KeyLike): Buffer
- Annotations
- @inline()
- def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignPrivateKeyInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignPrivateKeyInput): Buffer
- Annotations
- @inline()
- def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignKeyObjectInput, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def sign(algorithm: java.lang.String, data: ArrayBufferView, key: SignKeyObjectInput): Buffer
- Annotations
- @inline()
- def sign(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike, callback: Function2[|[Error, Null], Buffer, Unit]): Unit
- Annotations
- @inline()
- def sign(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike): Buffer
Calculates and returns the signature for
datausing the given private key and algorithm.Calculates and returns the signature for
datausing the given private key and algorithm. Ifalgorithmisnullorundefined, then the algorithm is dependent upon the key type (especially Ed25519 and Ed448).If
keyis not aKeyObject, this function behaves as ifkeyhad been passed tocrypto.createPrivateKey().- Annotations
- @inline()
- def timingSafeEqual(a: ArrayBufferView, b: ArrayBufferView): Boolean
- Annotations
- @inline()
- def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView): Boolean
- Annotations
- @inline()
- def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def verify(algorithm: Unit, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView): Boolean
- Annotations
- @inline()
- def verify(algorithm: Unit, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def verify(algorithm: Unit, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView): Boolean
- Annotations
- @inline()
- def verify(algorithm: Null, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def verify(algorithm: Null, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView): Boolean
- Annotations
- @inline()
- def verify(algorithm: Null, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def verify(algorithm: Null, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView): Boolean
- Annotations
- @inline()
- def verify(algorithm: Null, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def verify(algorithm: Null, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView): Boolean
- Annotations
- @inline()
- def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyPublicKeyInput, signature: ArrayBufferView): Boolean
- Annotations
- @inline()
- def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def verify(algorithm: java.lang.String, data: ArrayBufferView, key: VerifyKeyObjectInput, signature: ArrayBufferView): Boolean
- Annotations
- @inline()
- def verify(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView, callback: Function2[|[Error, Null], Boolean, Unit]): Unit
- Annotations
- @inline()
- def verify(algorithm: java.lang.String, data: ArrayBufferView, key: KeyLike, signature: ArrayBufferView): Boolean
Calculates and returns the signature for
datausing the given private key and algorithm.Calculates and returns the signature for
datausing the given private key and algorithm. Ifalgorithmisnullorundefined, then the algorithm is dependent upon the key type (especially Ed25519 and Ed448).If
keyis not aKeyObject, this function behaves as ifkeyhad been passed tocrypto.createPublicKey().- Annotations
- @inline()
- object AsymmetricKeyDetails
- object BasePrivateKeyEncodingOptions
- object BinaryToTextEncoding
- object Certificate
- object CharacterEncoding
- object CheckPrimeOptions
- object CipherCCMOptions
- object CipherCCMTypes
- object CipherGCMOptions
- object CipherGCMTypes
- object CipherInfo
- object CipherInfoOptions
- object CipherMode
- object DSAEncoding
- object DSAKeyPairKeyObjectOptions
- object DSAKeyPairOptions
- object ECDH
- object ECDHKeyFormat
- object ECKeyPairKeyObjectOptions
- object ECKeyPairOptions
- object ED25519KeyPairOptions
- object ED448KeyPairOptions
- object Encoding
- object GeneratePrimeOptions
- object GeneratePrimeOptionsArrayBuffer
- object GeneratePrimeOptionsBigInt
- object HashOptions
- object JsonWebKey
- object JsonWebKeyInput
- object JwkKeyExportOptions
- object KeyExportOptions
- object KeyFormat
- object KeyObjectType
- object KeyPairKeyObjectResult
- object KeyPairSyncResult
- object KeyType
- object LegacyCharacterEncoding
- object PrivateKeyInput
- object PublicKeyInput
- object RSAKeyPairKeyObjectOptions
- object RSAKeyPairOptions
- object RandomUUIDOptions
- object RsaPrivateKey
- object RsaPublicKey
- object ScryptOptions
- object SecureHeapUsage
- object SignKeyObjectInput
- object SignPrivateKeyInput
- object SigningOptions
- object VerifyKeyObjectInput
- object VerifyPublicKeyInput
- object X25519KeyPairOptions
- object X448KeyPairOptions
- object X509CheckOptions
- object ^ extends Object with StObject
- Annotations
- @JSImport("crypto", JSImport.Namespace) @native()
- object constants
Deprecated Value Members
- def DEFAULT_ENCODING: BufferEncoding
- Annotations
- @inline()
- Deprecated
since v10.0.0
- def createCipher(algorithm: java.lang.String, password: BinaryLike): Cipher
- Annotations
- @inline()
- Deprecated
since v10.0.0 use
createCipheriv()
- def createCipher(algorithm: CipherGCMTypes, password: BinaryLike): CipherGCM
- Annotations
- @inline()
- Deprecated
since v10.0.0 use
createCipheriv()
- def createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM
- Annotations
- @inline()
- Deprecated
since v10.0.0 use
createCipheriv()
- def createDecipher(algorithm: java.lang.String, password: BinaryLike): Decipher
- Annotations
- @inline()
- Deprecated
since v10.0.0 use
createDecipheriv()
- def createDecipher(algorithm: CipherGCMTypes, password: BinaryLike): DecipherGCM
- Annotations
- @inline()
- Deprecated
since v10.0.0 use
createDecipheriv()
- def createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM
- Annotations
- @inline()
- Deprecated
since v10.0.0 use
createDecipheriv()
- def fips: Boolean
- Annotations
- @inline()
- Deprecated
since v10.0.0