From 1e32cf0116d816dc64f744ed8812aa5a2a850f1e Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Tue, 9 Apr 2019 22:16:57 -0400 Subject: tweaks + "docs" --- badpass | 19 ++++++++++--------- unlock_keys | 1 - 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/badpass b/badpass index 6a350cf..d5286e4 100755 --- a/badpass +++ b/badpass @@ -1,9 +1,13 @@ #!/bin/sh -# Requires expect +# A bad password derivation scheme, hopefully portable. +# Requires `expect' to enable `keychain' key unlocking. +# Read source for detail. -PREFIX="THIS IS TOTALLY SUPER SECRET" -PHRASE="THIS IS TOTALLY SUPER SECRET" +PREFIX="Prepended to every password, usually special chars + uppercase" +MIDFIX="A not-necessarily-secret string to prevent pre-baked rainbow tables" + +echo -n "Master password: " # Supress echo, and trap exit for correct restoration stty -echo @@ -16,10 +20,7 @@ read -r MASTER # Restore state stty echo trap - EXIT - -USEECHO () { - echo $1 $2 -} +echo USEKEYCHAIN () { expect - <