From 5611bc59f584a48ffa3a4adfb8837f470cfe8c22 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Mon, 6 Feb 2023 19:22:58 +0000 Subject: display mnemonic key (#694) --- atuin-client/src/encryption.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'atuin-client/src') diff --git a/atuin-client/src/encryption.rs b/atuin-client/src/encryption.rs index 46cf1b2e..bb017b74 100644 --- a/atuin-client/src/encryption.rs +++ b/atuin-client/src/encryption.rs @@ -66,6 +66,7 @@ pub fn load_encoded_key(settings: &Settings) -> Result { } } +pub type Key = secretbox::Key; pub fn encode_key(key: secretbox::Key) -> Result { let buf = rmp_serde::to_vec(&key).wrap_err("could not encode key to message pack")?; let buf = base64::encode(buf); -- cgit v1.3.1