aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2023-02-06 19:22:58 +0000
committerGitHub <noreply@github.com>2023-02-06 19:22:58 +0000
commit5611bc59f584a48ffa3a4adfb8837f470cfe8c22 (patch)
tree9681cfeb382b62237c39c225687815e0798105eb /atuin-client/src
parentTry to make clippy happy 🥺 (#686) (diff)
downloadatuin-5611bc59f584a48ffa3a4adfb8837f470cfe8c22.zip
display mnemonic key (#694)
Diffstat (limited to 'atuin-client/src')
-rw-r--r--atuin-client/src/encryption.rs1
1 files changed, 1 insertions, 0 deletions
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<String> {
}
}
+pub type Key = secretbox::Key;
pub fn encode_key(key: secretbox::Key) -> Result<String> {
let buf = rmp_serde::to_vec(&key).wrap_err("could not encode key to message pack")?;
let buf = base64::encode(buf);