diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index a2630d6..fe426b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -158,7 +158,10 @@ async fn main() -> Result<()> { let existing_password = rpassword::prompt_password("Enter existing password to decrypt keys: ")?; let new_password = if gen { - let password = base64::encode(&u128::to_be_bytes(thread_rng().gen())[..10]); + let password = base64::encode_config( + &u128::to_be_bytes(thread_rng().gen())[..10], + base64::URL_SAFE_NO_PAD, + ); println!("Your new password: {}", password); println!("Keep it safe!"); password |