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