fscrypt
gocryptfs implementation in Go fs.FS interface, as a library
Poster
https://codeberg.org/NaitLee/fscrypt
Usage ¶
Note: fscrypt is a software library.
Go package index: https://pkg.go.dev/codeberg.org/NaitLee/fscrypt
See repository readme for document and code examples.
You can also try out the example tools:
go install codeberg.org/NaitLee/fscrypt/cmd/...@latest
go install codeberg.org/NaitLee/fscrypt/cmd/fscrypt-9p@latest
~/go/bin/fscrypt-* ...
Examples ¶
- Example programs
- servezip (
fscryptbranch), serve zip files as directories. - webhooker, simple and secure webhooks server.
Reason ¶
- Learn how gocryptfs works, as it’s different from traditional “entire file system volume in a file/partition/disk”.
- We need a simple-to-use library for using gocryptfs in code, as original gocryptfs code is not suitable to be used as a library.
fs.FSis an awesome interface.
Notes ¶
- Since
fs.FSis a readonly interface,fscrypt is readonly toofscrypt is writable now! Thanks to duckfs.
Disclaimer ¶
fscrypt is not audited by security experts. No warranty of any kind.