Options
All
  • Public
  • Public/Protected
  • All
Menu

Key derivation function namespace.

Index

Variables

Variables

OpenSSL

OpenSSL: { execute: any }

OpenSSL key derivation function.

Type declaration

  • execute:function
    • Derives a key and IV from a password.

      example
      var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
      var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');

      Parameters

      • password: string

        The password to derive from.

      • keySize: number

        The size in words of the key to generate.

      • ivSize: number

        The size in words of the IV to generate.

      • Optional salt: string | cryptojs.lib.WordArray

        (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.

      Returns cryptojs.lib.CipherParams

      A cipher params object with the key, IV, and salt.

Generated using TypeDoc