Skip to main content

Volkoff

A secure file encryption tool using AES-256-GCM encryption.

Installation:

pip install volkoff

Launch with:

vk

Implementation Details

Encryption Process

  1. Generates a 256-bit AES key for secure encryption
  2. Creates a container format that includes:
    • File extension metadata
    • Original file contents
    • Unique 12-byte nonce for each encryption
  3. Encrypts the entire container using AES-256-GCM
  4. Returns the encryption key for secure storage

Decryption Process

  1. Validates the provided encryption key
  2. Extracts the nonce from the encrypted container
  3. Decrypts the container to retrieve:
    • Original file extension
    • File contents
  4. Reconstructs the file with original metadata

Security Features

  • AES-256-GCM authenticated encryption
  • Unique nonce generation per file
  • Secure container format preserving file metadata
  • Authentication to prevent tampering

Important Security Notes

  • Store encryption keys securely - they cannot be recovered
  • Maintain secure backups of encryption keys
  • Verify successful decryption after encrypting critical files

Single key, Multiple Files

From 0.1.44 supports the VOLKOFF_KEY env variable and a new ch option where a folder will be compressed+encrypted.

The recommended aproach is to keep the key in a password manager and to temporarily set it in a terminal session.

  • linux: export VOLKOFF_KEY=<key>
  • Windows (CMD): set VOLKOFF_KEY=<key>
  • Windows (PS): $Env:VOLKOFF_KEY = "<key>"

Disclaimer

The author and contributors are not responsible for any data loss or corruption that may occur while using this software. Users are strongly advised to:

  • Keep secure backups of all important files before encryption
  • Safely store encryption keys in multiple locations
  • Test the decryption process on non-critical files first
  • Verify successful decryption immediately after encryption

Release files for volkoff 0.1.45

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for volkoff 0.1.45
File Size Uploaded
volkoff-0.1.45.tar.gz 136.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for volkoff 0.1.45
File Interpreter ABI Platform
volkoff-0.1.45-py3-none-any.whl Python 3 none any Details

Total release size: 147.4 kB

Release files / volkoff-0.1.45.tar.gz

Download URL volkoff-0.1.45.tar.gz
Size 136.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ba5f072e21a06a6f4f47b1097ee9e4977890bd432f4678280336621fc3440fba
BLAKE2b-256 checksum
How to use checksums
c1cc74cd5196a06cf0b380c7d3b012d132794b901c163dd0caa704ba66420054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.18

Release files / volkoff-0.1.45-py3-none-any.whl

Download URL volkoff-0.1.45-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd78822e0e7ddc9d83fd040cec06b8e3fe93d8b6f14a5eee11df9a024b030f65
BLAKE2b-256 checksum
How to use checksums
6c94d2247e32ccced64084521b1e2b0733bf022f35cd98a1af8fd1a7dfa03451
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.18

Release history Release notifications | RSS feed

This release

0.1.45 This release

2 release files

0.1.44

2 release files

0.1.43

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page