Function encryptSecretKey

  • Description

    Encrypts a secret key with a passphrase

    Returns

    The encrypted secret key

    Example

    const encryptedSecretKey = cryptoUtils.encryptSecretKey(
    'p2sk3T9fYpibobxRr7daoPzywLpLAXJVd3bkXpAaqYVtVB37aAp7bU',
    'password',
    );

    Parameters

    • key: string

      The secret key

    • passphrase: string

      The passphrase to encrypt the key

    • salt: Uint8Array = ...

      The salt to apply to the encryption

    Returns string

Generated using TypeDoc