dcrypto.key

Members

Functions

keyFromSecret
Key keyFromSecret(string data, string salt, int rounds = 200, int keyLength = EVP_MAX_KEY_LENGTH, int ivLength = EVP_MAX_IV_LENGTH)

Build and return a key based on secret data using the specified salt

keyFromSecret
Key keyFromSecret(string data, int rounds = 200, int keyLength = EVP_MAX_KEY_LENGTH, int ivLength = EVP_MAX_IV_LENGTH)

Build and return a key based on secret data with a random salt generated

Structs

Key
struct Key

Basic struct for for storing a key. Includes a key, an iv and a salt.

Meta