package cryptoMod
- Alphabetic
- By Inheritance
- cryptoMod
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait AsymmetricKeyDetails extends Object with StObject
- Annotations
- @JSType() @native()
- type BinaryLike = |[String, ArrayBufferView]
- trait BinaryToTextEncoding extends Object with StObject
- Annotations
- @JSType()
- trait CharacterEncoding extends Object with StObject
- Annotations
- @JSType()
- trait DSAEncoding extends Object with StObject
- Annotations
- @JSType()
- trait Encoding extends Object with StObject
- Annotations
- @JSType()
- trait JsonWebKey extends Object with StObject with StringDictionary[Any]
- 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()
- class KeyObject extends Object with StObject with _KeyLike
Node.js uses a
KeyObject
class to represent a symmetric or asymmetric key, and each kind of key exposes different functions.Node.js uses a
KeyObject
class to represent a symmetric or asymmetric key, and each kind of key exposes different functions. ThecreateSecretKey
,createPublicKey
andcreatePrivateKey
methods are used to createKeyObject
instances.KeyObject
objects are not to be created directly using thenew
keyword.Most applications should consider using the new
KeyObject
API instead of passing keys as strings orBuffer
s due to improved security features.KeyObject
instances can be passed to other threads viapostMessage()
. The receiver obtains a clonedKeyObject
, and theKeyObject
does not need to be listed in thetransferList
argument.- Annotations
- @JSType() @JSImport("crypto", "KeyObject") @native()
- Since
v11.6.0
- trait KeyObjectType extends Object with StObject
- Annotations
- @JSType()
- trait KeyType extends Object with StObject
- Annotations
- @JSType()
- trait LegacyCharacterEncoding extends Object with StObject
- Annotations
- @JSType()
- class X509Certificate extends Object with StObject
Encapsulates an X509 certificate and provides read-only access to its information.
Encapsulates an X509 certificate and provides read-only access to its information.
js const { X509Certificate } = await import('crypto');
const x509 = new X509Certificate('{... pem encoded cert ...}');
console.log(x509.subject);
- Annotations
- @JSType() @JSImport("crypto", "X509Certificate") @native()
- Since
v15.6.0
- trait X509CheckOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait _KeyLike extends Object with StObject
- Annotations
- @JSType()
Value Members
- object AsymmetricKeyDetails
- object BinaryToTextEncoding
- object CharacterEncoding
- object DSAEncoding
- object Encoding
- object JsonWebKey
- object JwkKeyExportOptions
- object KeyExportOptions
- object KeyFormat
- object KeyObject
- object KeyObjectType
- object KeyType
- object LegacyCharacterEncoding
- object X509CheckOptions
- object ^ extends Object with StObject
- Annotations
- @JSImport("crypto", JSImport.Namespace) @native()
- object webcrypto