Mise à jour de 'README.md'

This commit is contained in:
Xavier 2023-05-04 11:04:04 +02:00
parent 615b67ef69
commit 8c889c3798

View File

@ -1,21 +1,37 @@
pres requis install encfs
## EncFS
```
sudo apt install encfs
```
Formater cle usb fat32
```
dd if=/dev/urandom if=/media/xavier/Secure/passphrase.bin bs=16k count=1
```
Pour monter
```
encfs ~/encrypted ~/decrypted
```
choisir mode p
et un pass provisoir
cd /cle usb
aller dans votre clef usb
cd /media/USER/Usb
```
echo -n "Enter current password: " && read -s PASSWORD && (echo $PASSWORD && base64 -w 0 passphrase.bin) | encfsctl autopasswd ~/encrypted
```
```
base64 -w 0 passphrase.bin | encfs -S ~/encrypted ~/decrypted
```
et pour démonter
fusermount -u ~/decrypted
```
fusermount -u ~/decrypted
```
Pour la génération de passphrase.bin