erfur / rc4fs Goto Github PK
View Code? Open in Web Editor NEWLicense: The Unlicense
License: The Unlicense
██████╗░░█████╗░░░██╗██╗███████╗░██████╗ ██╔══██╗██╔══██╗░██╔╝██║██╔════╝██╔════╝ ██████╔╝██║░░╚═╝██╔╝░██║█████╗░░╚█████╗░ ██╔══██╗██║░░██╗███████║██╔══╝░░░╚═══██╗ ██║░░██║╚█████╔╝╚════██║██║░░░░░██████╔╝ ╚═╝░░╚═╝░╚════╝░░░░░░╚═╝╚═╝░░░░░╚═════╝░ --[ 0 - RC4FS ] This is a FUSE filesystem implementation that uses rc4 to encrypt file contents. There will be no plain data written to disk (aside from the file name of course). --[ 1 - Implementation ] A FUSE filesystem is a user-mounted (no root required) virtual filesystem. File functions such as open, read, write, stat are implemented as custom functions in userspace. This allows creating a filesystem from virtually any input source. These functions are required for basic functionality: - open - release - read - write - readdir - getattr - mknod - unlink A basic tutorial can be found in [1]. A passthrough implementation can be found in libfuse documentation [2]. --[ 1.1 - Encryption Layer ] rc4fs implements rc4+ encryption scheme to keep the data on the disk encrypted. Since rc4 is a stream cipher and disk operations require random access, a direct approach fails on both performance and security. To compensate these shortcomings, at each sector (default 4KB) rc4fs resets the encryption stream and uses a random IV. These enchancements result in both reasonable performance and security. The rc4+ key is used for all the files in a folder. A new IV key is generated from /dev/urandom for each new file and this key is placed at the end of the file. A random IV for each sector is then derived from this initial key. --[ 2 - How to Build ] rc4fs can be build using Meson/Ninja: $ meson build $ cd build $ ninja --[ 3 - Usage ] To mount an encrypted folder, run the program with the following args: $ rc4fs [FUSE and mount options] mountpoint encryptedfolder rc4key --[ A - References ] [1] https://www.cs.nmsu.edu/~pfeiffer/fuse-tutorial/html/index.html [2] http://libfuse.github.io/doxygen/example_2passthrough__fh_8c.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.