passman -- simple password manager
-It stores passwords in single recfile
-(https://www.gnu.org/software/recutils/), that is by default encrypted
-by age (https://github.com/FiloSottile/age) with the passphrase and
-compressed by zstd.
+It stores passwords in single recfile, that is encrypted either by age
+or cmenctool with the passphrase, and compressed by Zstandard.
+
+=> https://www.gnu.org/software/recutils/ recfile/recutils\r
+=> https://github.com/FiloSottile/age age\r
+=> http://www.keks.cypherpunks.su/cm/index.html cmenctool\r
+=> https://facebook.github.io/zstd/ Zstandard\r
* passman add NAME [PASSWORD]
Appends NAME credential with optional password to the database. If
dec() {
if [ -s $DB ] ; then
- age -d $DB | zstd -d
+ # age -d $DB | zstd -d
+ cmenctool -p -d <$DB | zstd -d
else
cat <<EOF
%rec: Credential
}
enc() {
- zstd | age -p
+ # zstd | age -p
+ zstd | cmenctool -p -embed
}
generator() {
[ -n "$dst" ]
[ -n "$passwd" ] || passwd=$(generator)
echo ${dst}...
- dec | recins -t Credential -f Name -v "$dst" -f Passwd -v "$passwd" >$tmp
+ dec | recins --verbose -t Credential -f Name -v "$dst" -f Passwd -v "$passwd" >$tmp
commit
;;
mod)