Encrypt files in the shell with v02enc
Conclusions
Niehage's v02enc proves that good ideas do not necessarily have to come from corporations and do not always take years to successfully implement. Based on his experience with Shared-Secrets, Niehage has designed v02enc to easily encrypt and decrypt secrets for sharing via the command line and for saving in source code directories. The ability to encrypt a file for access by several users in parallel greatly facilitates the work of teams.
Admittedly, you could create a comparable feature set using Ansible Vault. However, Ansible Vault cannot compete with v02enc in terms of leanness; it also requires significantly more overhead to make it work. Conversely, v02enc can be easily distributed to any system that needs it, as can the keys of the users who will use it. Tools such as vim02enc and seamless integration with the Git and Mercurial diff views, as well as Keychain integration on macOS round out the package. If you are looking for a lean alternative to Ansible Vault, you will definitely want to take a closer look at v02enc.
Infos
- "Linux Shadow Password HOWTO" by Michael H. Jackson, The Linux Documentation Project, 1996 (PDF): https://tldp.org/HOWTO/pdf/Shadow-Password-HOWTO.pdf
- Shared-Secrets: https://github.com/yahesh/shared-secrets
- Shared-Secrets online service: https://secrets.nhg.name
- age encryption: https://github.com/FiloSottile/age
- v02enc source code: https://github.com/yahesh/v02enc
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Fedora 43 Has Finally Landed
The Fedora Linux developers have announced their latest release, Fedora 43.
-
KDE Unleashes Plasma 6.5
The Plasma 6.5 desktop environment is now available with new features, improvements, and the usual bug fixes.
-
Xubuntu Site Possibly Hacked
It appears that the Xubuntu site was hacked and briefly served up a malicious ZIP file from its download page.
-
LMDE 7 Now Available
Linux Mint Debian Edition, version 7, has been officially released and is based on upstream Debian.
-
Linux Kernel 6.16 Reaches EOL
Linux kernel 6.16 has reached its end of life, which means you'll need to upgrade to the next stable release, Linux kernel 6.17.
-
Amazon Ditches Android for a Linux-Based OS
Amazon has migrated from Android to the Linux-based Vega OS for its Fire TV.
-
Cairo Dock 3.6 Now Available for More Compositors
If you're a fan of third-party desktop docks, then the latest release of Cairo Dock with Wayland support is for you.
-
System76 Unleashes Pop!_OS 24.04 Beta
System76's first beta of Pop!_OS 24.04 is an impressive feat.
-
Linux Kernel 6.17 is Available
Linus Torvalds has announced that the latest kernel has been released with plenty of core improvements and even more hardware support.
-
Kali Linux 2025.3 Released with New Hacking Tools
If you're a Kali Linux fan, you'll be glad to know that the third release of this famous pen-testing distribution is now available with updates for key components.

