• Performs in memory AES-192 encryption on a message given the supplied password. Generates a random initialization vector (iv) for the encryption, and returns both the cipher text and the iv.

    Parameters

    • password: string

      encryption password

    • message: string | Buffer

      Message to encrypt, which is usually a String or a Buffer

    Returns Promise<{
        cipher: Buffer;
        iv: Buffer;
    }>