Answer the question
In order to leave comments, you need to log in
Ecryptfs decrypts data with wrong passphrase, bug, or am I doing something wrong?
OS - SUSE Linux Enterprise Server 11 (x86_64) PATCHLEVEL 2
Installed ecryptfs-utils-61- 1.29.1
Created a directory where I intended to store encrypted data.
I created a file and put data into it.
Mounted the directory with the command
mount -t ecryptfs /home/usefree/forEncryption /home/usefree/forEncryption2
answered the questions:
Select key type to use for newly created files:
3) passphrase
Passphrase: 123456
Select ciper:
1)aes
Select key bytes:
1 )16
Enable plaintext passthrough (y/n) [n] y
Enable filename encryption (y/n) [n] y
Filename Encryption Key (FNEX) Signature [66cea2017ad38853]
Attempting to mount with the following options:
here is a list of the above
WARNING: Based on the contents of [/root/.ecryptfs/sig-cache.txt],
it looks like you have never mounted with this key
before. This could mean that you have typed your
passphrase wrong
Would you like to proceed with the mount (yes/no)? : yes
Would you like to append sig [66cea2017ad38853] to
[/root/.ecryptfs/sig-cache.txt]
in order to avoid this warning in the future (yes/no)? : yes
Successfully appended new sig to user sig cache file
Mounted eCryptfs
I go to an encrypted directory with an encrypted file - the file is opened and read.
I unmount the encrypted directory, I try to read the file from it - the file is not readable, I
mount the directory again
mount -t ecryptfs /home/usefree/forEncryption /home/usefree/forEncryption2 I
repeat all the steps above, I enter passphrase 654321, the directory is mounted, the file is read.
Question: what am I doing wrong? why is the data from the encrypted directory accessible when entering different passphrase? How to do. so that only when you enter the correct passphrase, the data is decrypted?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question