Skip to content

Navigation Menu

Sign in
Sign up

Chaging passwd while passfile is used #882

Answered by rfjakob
KrishCrS asked this question in Q&A
Discussion options

gocryptfs -passfile password.txt -passwd -d CIPHER
OpenSSL disabled, using Go GCM
passfile: reading from file "password.txt"
Decrypting master key
CryptoCore.Wipe: Only nil'ing stdlib refs
Please enter your new password.
passfile: reading from file "password.txt"
CryptoCore.Wipe: Only nil'ing stdlib refs
Password changed.

I generated a binary file with the name passwod.txt, using /dev/urandom, so I can't pass the password from STDIN. Can I change the password in this scenario?

You must be logged in to vote

Alternatively, download the latest source code and compile, I now have -passwd ignore -passfile ( d5bd98e )

Replies: 1 comment 1 reply

Comment options

Interesting situation :)

How about this (make a copy of your gocryptfs.conf beforehand!):

echo "" > newline
echo "the new password 123324234!" > newpassword
cat password.txt newline newpassword | gocryptfs -passwd
You must be logged in to vote
1 reply
Comment options

Alternatively, download the latest source code and compile, I now have -passwd ignore -passfile ( d5bd98e )

Answer selected by rfjakob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /