by chasil · 3y ago · 0 comments
That level of interoperability would greatly increase confidence, I think, but this doesn't use Argon2id and BLAKE2b.
$ echo foobar > .pwfile
$ openssl enc -chacha20 -e -pbkdf2 -pass file:.pwfile -in sensitive.db -out sensitive.cha
$ openssl enc -chacha20 -d -pbkdf2 -pass file:.pwfile -in sensitive.cha -out test.db
$ diff test.db sensitive.db
$But good news! I've come up with... something.
https://codeberg.org/markdascher/moochacha/src/branch/main/o...
That strings together a combination of argon2 and openssl commands to decrypt a file. It's extremely unsafe though, since all of the secrets end up in command-line arguments. Also some of those commands might be new in OpenSSL 3.
I recently discovered exactly how unsafe PuTTY's "psftp -pw" option is (20+ years after introduction), so purging argv is always prudent.
https://www.linuxjournal.com/content/putty-scripted-password...