PKI-Lite - v1.0.8
    Preparing search index...

    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.

    const provider = new WebCryptoExtendedProvider();
    const hash = await provider.digest(data, 'MD5');
    const encrypted = await provider.encryptSymmetric(data, key, { type: 'AES_128_ECB' });
    const decrypted = await provider.decryptSymmetric(encryptedData, key, { type: 'AES_128_ECB' });
    const rsaEncrypted = await provider.encrypt(data, publicKeyInfo, { type: 'RSASSA_PKCS1_v1_5' });
    const rsaDecrypted = await provider.decrypt(rsaEncryptedData, privateKeyInfo, { type: 'RSASSA_PKCS1_v1_5' });

    Hierarchy (View Summary)

    Index

    Constructors

    Methods