object nodeCryptoMod
- Source
- nodeCryptoMod.scala
- Alphabetic
- By Inheritance
- nodeCryptoMod
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class CertificateCls extends Object with StObject with Certificate
- Annotations
- @JSType() @JSImport("node:crypto", "Certificate") @native()
- class Cipher extends Object with StObject
- Annotations
- @JSType() @JSImport("node:crypto", "Cipher") @native()
- class Decipher extends Object with StObject
- Annotations
- @JSType() @JSImport("node:crypto", "Decipher") @native()
- class DiffieHellman_ extends cryptoMod.DiffieHellman_
- Annotations
- @JSType() @JSImport("node:crypto", "DiffieHellman") @native()
- class ECDH extends cryptoMod.ECDH
- Annotations
- @JSType() @JSImport("node:crypto", "ECDH") @native()
- class Hash extends Object with StObject
- Annotations
- @JSType() @JSImport("node:crypto", "Hash") @native()
- class Hmac extends Object with StObject
- Annotations
- @JSType() @JSImport("node:crypto", "Hmac") @native()
- class KeyObject extends cryptoMod.KeyObject
- Annotations
- @JSType() @JSImport("node:crypto", "KeyObject") @native()
- class Signer extends Object with StObject
- Annotations
- @JSType() @JSImport("node:crypto", "Signer") @native()
- class Verify_ extends Object with StObject
- Annotations
- @JSType() @JSImport("node:crypto", "Verify") @native()
- class X509Certificate extends cryptoMod.X509Certificate
- Annotations
- @JSType() @JSImport("node:crypto", "X509Certificate") @native()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ^: Any
- Annotations
- @JSImport("node:crypto", JSImport.Namespace) @native()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def createCipher(algorithm: java.lang.String, password: BinaryLike, options: TransformOptions): cryptoMod.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): cryptoMod.Cipher
- Annotations
- @inline()
- def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike, options: TransformOptions): cryptoMod.Cipher
- Annotations
- @inline()
- def createCipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike): cryptoMod.Cipher
- Annotations
- @inline()
- def createCipheriv(algorithm: java.lang.String, key: CipherKey): cryptoMod.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): cryptoMod.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): cryptoMod.Decipher
- Annotations
- @inline()
- def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike, options: TransformOptions): cryptoMod.Decipher
- Annotations
- @inline()
- def createDecipheriv(algorithm: java.lang.String, key: CipherKey, iv: BinaryLike): cryptoMod.Decipher
- Annotations
- @inline()
- def createDecipheriv(algorithm: java.lang.String, key: CipherKey): cryptoMod.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): cryptoMod.DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: java.lang.String, generator_encoding: BinaryToTextEncoding): cryptoMod.DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding, generator: ArrayBufferView): cryptoMod.DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime: java.lang.String, prime_encoding: BinaryToTextEncoding): cryptoMod.DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime: ArrayBufferView): cryptoMod.DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime_length: Double, generator: Double): cryptoMod.DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime_length: Double, generator: ArrayBufferView): cryptoMod.DiffieHellman_
- Annotations
- @inline()
- def createDiffieHellman(prime_length: Double): cryptoMod.DiffieHellman_
- Annotations
- @inline()
- def createECDH(curve_name: java.lang.String): cryptoMod.ECDH
- Annotations
- @inline()
- def createHash(algorithm: java.lang.String, options: HashOptions): cryptoMod.Hash
- Annotations
- @inline()
- def createHash(algorithm: java.lang.String): cryptoMod.Hash
- Annotations
- @inline()
- def createHmac(algorithm: java.lang.String, key: cryptoMod.KeyObject, options: TransformOptions): cryptoMod.Hmac
- Annotations
- @inline()
- def createHmac(algorithm: java.lang.String, key: cryptoMod.KeyObject): cryptoMod.Hmac
- Annotations
- @inline()
- def createHmac(algorithm: java.lang.String, key: BinaryLike, options: TransformOptions): cryptoMod.Hmac
- Annotations
- @inline()
- def createHmac(algorithm: java.lang.String, key: BinaryLike): cryptoMod.Hmac
- Annotations
- @inline()
- def createPrivateKey(key: java.lang.String): cryptoMod.KeyObject
- Annotations
- @inline()
- def createPrivateKey(key: PrivateKeyInput): cryptoMod.KeyObject
- Annotations
- @inline()
- def createPrivateKey(key: JsonWebKeyInput): cryptoMod.KeyObject
- Annotations
- @inline()
- def createPrivateKey(key: Buffer): cryptoMod.KeyObject
- Annotations
- @inline()
- def createPublicKey(key: java.lang.String): cryptoMod.KeyObject
- Annotations
- @inline()
- def createPublicKey(key: PublicKeyInput): cryptoMod.KeyObject
- Annotations
- @inline()
- def createPublicKey(key: cryptoMod.KeyObject): cryptoMod.KeyObject
- Annotations
- @inline()
- def createPublicKey(key: JsonWebKeyInput): cryptoMod.KeyObject
- Annotations
- @inline()
- def createPublicKey(key: Buffer): cryptoMod.KeyObject
- Annotations
- @inline()
- def createSecretKey(key: ArrayBufferView): cryptoMod.KeyObject
- Annotations
- @inline()
- def createSign(algorithm: java.lang.String, options: WritableOptions): cryptoMod.Signer
- Annotations
- @inline()
- def createSign(algorithm: java.lang.String): cryptoMod.Signer
- Annotations
- @inline()
- def createVerify(algorithm: java.lang.String, options: WritableOptions): cryptoMod.Verify_
- Annotations
- @inline()
- def createVerify(algorithm: java.lang.String): cryptoMod.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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def generateKeyPair(type: x448, options: Unit, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.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], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: x25519, options: Unit, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.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], cryptoMod.KeyObject, cryptoMod.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], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ed448, options: Unit, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.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], cryptoMod.KeyObject, cryptoMod.KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKeyPair(type: ed25519, options: Unit, callback: Function3[|[Error, Null], cryptoMod.KeyObject, cryptoMod.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], cryptoMod.KeyObject, cryptoMod.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], cryptoMod.KeyObject, cryptoMod.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], cryptoMod.KeyObject, cryptoMod.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], cryptoMod.KeyObject, Unit]): Unit
- Annotations
- @inline()
- def generateKey_hmac(type: hmac, options: Length, callback: Function2[|[Error, Null], cryptoMod.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()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getCurves(): Array[java.lang.String]
- Annotations
- @inline()
- def getDiffieHellman(group_name: java.lang.String): cryptoMod.DiffieHellman_
- Annotations
- @inline()
- def getFips(): |[1, 0]
- Annotations
- @inline()
- def getHashes(): Array[java.lang.String]
- Annotations
- @inline()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hkdf(digest: java.lang.String, key: cryptoMod.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: cryptoMod.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()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timingSafeEqual(a: ArrayBufferView, b: ArrayBufferView): Boolean
- Annotations
- @inline()
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Certificate
- object ECDH
- object constants
Deprecated Value Members
- val DEFAULT_ENCODING: BufferEncoding
- Annotations
- @JSImport("node:crypto", "DEFAULT_ENCODING") @native()
- Deprecated
since v10.0.0
- def createCipher(algorithm: java.lang.String, password: BinaryLike): cryptoMod.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): cryptoMod.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 finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- val fips: Boolean
- Annotations
- @JSImport("node:crypto", "fips") @native()
- Deprecated
since v10.0.0