Function linkspace::key::lk_key_encrypt

source ·
pub fn lk_key_encrypt(key: &SigningKey, password: &[u8]) -> String
Expand description

Encrypt the private key into a storable/share-able string - sometimes called an enckey Uses argon2d (using the public key as salt). An empty password sets the difficulty to trivial. *