
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
filevault is a class for managing a hash directory tree of files on a filesystem.
A Vault will:
Setuptools::
easy_install filevault
Pip::
pip install filevault
How to create a default Vault object::
from filevault import Vault
v = Vault()
You may (and should) customize the Vault instance. Here are the arguments:
vaultpath Where should the tree be created? Defaults to 'vault' in pwd.
depth How deep should the tree span? Defaults to 3 directories deep.
salt Add a custom salt for a unique and more secure tree, defaults to 'changeme'
Another custom example::
from filevault import Vault
v = Vault( vaultpath="/tmp/for-test", depth=2, salt="sugar" )
Now that we have a Vault object named v, we may review its two methods:
create_filename( seed, ext='', absolute=False ) Create a valid vault filename seeded with input. Optional extension. Relative path from vaultpath by default unless absolute is True.
create_random_filename( ext='', absolute=False ) Create a valid vault filename seeded with random input. Optional extension. Relative path from vaultpath by default unless absolute is True.
Here is a full example::
from filevault import Vault
v = Vault( vaultpath="/tmp/for-test", depth=2, salt="sugar" )
print v.create_filename( "my-first-file", ".png" )
print v.create_filename( "my-first-file", ".png" )
print v.create_filename( "my-first-file", ".png", absolute=True )
v.create_random_filename()
Check out my webpage to screenshot service <https://linkpeek.com>_ and give me some feedback, tips, or advice. Every little bit of help counts.
FAQs
filevault: manage a hash directory tree and files
We found that filevault demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.