Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Jun 22, 2024
1 parent dcfacb7 commit ccfdae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fn encrypt(mut opt: cli::Opt, key: String, value: Option<String>) -> Result<()>

fn generate(opt: cli::Opt, key: String) -> Result<()> {
let value = SecretKey::generate(&mut OsRng);
let value = base64::engine::general_purpose::STANDARD.encode(value.to_bytes());
let value = base64::engine::general_purpose::STANDARD.encode(value.to_bytes());
let msg = format!("Your new secret value is {key}: {value}");
encrypt(opt, key, Some(value))?;
println!("{}", &msg);
Expand Down

0 comments on commit ccfdae9

Please sign in to comment.