Skip to content

Utilty to access a gocryptfs filesystem from command line with Python 3

License

Notifications You must be signed in to change notification settings

maxpat78/gocryptfs-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocryptfs-tool

A simple Python 3 script to access a gocryptfs filesystem (without gocryptfs itself) and carry on some useful operations like:

ls       list virtual file system files and directories in decrypted form, with true size and times
decrypt  decrypt a file or directory into a given destination
alias    show the real pathname linked to a virtual one
backup   backup the Directory IVs (required to decrypt names) in a ZIP file

Passing a couple options, you can show you master key or recover it in case configuration files are corrupted:

--print-key [a85 | b64] shows the decrypted master key in ASCII85 or BASE64 form, to annotate it in a safe place for recovering purposes

--master-key grants access to your files even in case of lost configuration file gocryptfs.conf , provided the master key in ASCII85 or BASE64 form

EMENames, AESSIV, XChaCha20Poly1305, PlaintextNames and LongNames are supported filesystem options among others.

Functionality was tested with cppcryptfs 1.4.4.4 (Windows 11) and gocryptfs 2.4.0 (Ubuntu 22.04 LTS Linux under Windows WSL).

It's pure Python 3, with pycryptodome addon.

MIT licensed.

Releases

No releases published

Packages

No packages published

Languages