Outils pour utilisateurs

Outils du site


informatique:gocryptfs

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:gocryptfs [2020/12/06 09:12] simoninformatique:gocryptfs [2020/12/11 10:48] (Version actuelle) – [Alternative(s)] simon
Ligne 1: Ligne 1:
 ====== Gocryptfs ====== ====== Gocryptfs ======
  
 +Gocryptfs ([[https://nuetzlich.net/gocryptfs/|site]]) est une alternative à [[encfs]].
 +===== Installation =====
 +Sur [[ubuntu]], gocryptfs est dans les dépôts :
 +<code bash>
 +$ sudo apt search gocryptfs
 +En train de trier... Fait
 +Recherche en texte intégral... Fait
 +gocryptfs/focal 1.7.1-1 amd64
 +  Encrypted overlay filesystem written in Go
 +
 +$ sudo apt install gocryptfs
 +</code>
 +
 +__Note:__ On peut installer [[SiriKali]] pour gérer gocryptfs graphiquement.
 +===== Configuration =====
 +
 +  * On prépare les répertoires (Dans mon cas, ''coffre-gocryptfs'' sera le répertoire chiffré, synchronisé avec [[nextcloud]].)
 +<code bash>
 +$ mkdir ~/Cloud/coffre-gocryptfs
 +
 +$ mkdir coffre-gocryptfs-ouvert
 +</code>
 +
 +  * On initialise :
 +<code bash>
 +$ gocryptfs -init ~/Cloud/coffre-gocryptfs/
 +Choose a password for protecting your files.
 +Password: 
 +Repeat: 
 +
 +Your master key is:
 +
 +    aaaaaaaa-aaaaaaaa-aaaaaaaa-aaaaaaaa-
 +    aaaaaaaa-aaaaaaaa-aaaaaaaa-aaaaaaaa
 +
 +If the gocryptfs.conf file becomes corrupted or you ever forget your password,
 +there is only one hope for recovery: The master key. Print it to a piece of
 +paper and store it in a drawer. This message is only printed once.
 +The gocryptfs filesystem has been created successfully.
 +You can now mount it using: gocryptfs Cloud/coffre-gocryptfs MOUNTPOINT
 +</code>
 +
 +  * On monte le dossier chiffré au point de montage voulu :
 +<code bash>
 +$ gocryptfs ~/Cloud/coffre-gocryptfs/ ~/coffre-gocryptfs-ouvert/
 +Password: 
 +Decrypting master key
 +Filesystem mounted and ready.
 +
 +  * Il n'y a au départ que deux fichiers :
 +<code bash>
 +$ ls -alh ~/Cloud/coffre-gocryptfs/
 +total 16K
 +drwxrwxr-x  2 simon simon 4,0K déc  6 21:58 .
 +drwxrwxr-x 14 simon simon 4,0K déc  6 21:56 ..
 +-r--------  1 simon simon  385 déc  6 21:58 gocryptfs.conf
 +-r--r-----  1 simon simon   16 déc  6 21:58 gocryptfs.diriv
 +
 +$ ls -alh ~/coffre-gocryptfs-ouvert/
 +total 8,0K
 +drwxrwxr-x  2 simon simon 4,0K déc  6 21:58 .
 +drwxr-xr-x 30 simon simon 4,0K déc  6 21:59 ..
 +</code>
 +
 +===== Tests =====
 +==== Fichier vide ====
 +<code bash>
 +$ touch ~/coffre-gocryptfs-ouvert/test.txt
 +
 +$ ls -alh ~/coffre-gocryptfs-ouvert/
 +total 8,0K
 +drwxrwxr-x  2 simon simon 4,0K déc  6 21:59 .
 +drwxr-xr-x 30 simon simon 4,0K déc  6 21:59 ..
 +-rw-rw-r--  1 simon simon    0 déc  6 21:59 test.txt
 +
 +$ ls -alh ~/Cloud/coffre-gocryptfs/
 +total 16K
 +drwxrwxr-x  2 simon simon 4,0K déc  6 21:59 .
 +drwxrwxr-x 14 simon simon 4,0K déc  6 21:56 ..
 +-rw--w----  1 simon simon  385 déc  6 21:58 gocryptfs.conf
 +-rw-rw----  1 simon simon   16 déc  6 21:58 gocryptfs.diriv
 +-rw-rw-r--  1 simon simon    0 déc  6 21:59 owMjDpXjCS1Wk_fRGKVjEw
 +</code>
 +
 +==== Dossier plus important ====
 +J'ai copié un dossier de ~800Mo contenant pas mal de documents. Dans le lot, certains fichiers ont causé des erreurs ( ''splicing'' )
 +
 +Ces fichiers sont en fait corrompus...
 +Il va falloir que je regarde si je peux encore les récupérer depuis un backup. m(
 ===== Alternative(s) ===== ===== Alternative(s) =====
   * [[encfs]]   * [[encfs]]
   * [[ecryptfs]]   * [[ecryptfs]]
   * [[cryfs]]   * [[cryfs]]
 +  * [[cryptomator]]
 +  * [[rclone]]
 +  * Voir aussi : [[sirikali]]
informatique/gocryptfs.1607245976.txt.gz · Dernière modification : 2020/12/06 09:12 de simon