Converts symmetric encryption algorithm parameters to a content encryption algorithm identifier.
The symmetric encryption algorithm parameters
Content encryption algorithm as an AlgorithmIdentifier
Decrypts the given data using the specified private key and asymmetric algorithm.
The data to decrypt
The private key information
The decryption algorithm to use
Promise resolving to the decrypted data as a Uint8Array
Decrypts the given data using the specified symmetric key and algorithm.
The data to decrypt
The symmetric key to use for decryption
The decryption algorithm to use
Promise resolving to the decrypted data as a Uint8Array
Computes a cryptographic hash of the input data.
The data to hash
The hash algorithm to use
The computed hash bytes
Encrypts data using asymmetric (public key) cryptography.
The data to encrypt
The public key information
The encryption algorithm to use
Promise resolving to the encrypted data as a Uint8Array
Encrypts the given data using the specified symmetric key and algorithm.
The data to encrypt
The symmetric key to use for encryption
The encryption algorithm to use
Promise resolving to the encrypted data as a Uint8Array
Converts an ASN.1 algorithm identifier to symmetric encryption algorithm parameters.
The ASN.1 algorithm identifier
Symmetric encryption algorithm parameters
Extended WebCryptoProvider that adds support for additional algorithms such as MD5 hashing, AES ECB mode, and certain PBE algorithms.
Note: This implementation uses the 'node-forge' library for RSA encryption/decryption with PKCS#1 v1.5 padding, as WebCrypto does not support this mode directly.
Caution: MD5 is considered cryptographically weak and should be used with caution. This provider is intended for compatibility with legacy systems and not for secure applications.
Example