Skip to content

knoode/napass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

napass

Installation

  1. Make sure Python3 (>=3.13) is installed
  2. pip3 install requirements.txt
  3. Execute ./napass shell script

Quick start

Initiate a new vault by running the following command:

./napass init

Specify the name of your Vault and the password. For now, or maybe forever, there's no way to restore vault password, so please remember it.

You'll be dropped into NAPASS shell session. Now go experiment through using some commands. You can get a list by typing help. You'll get there :)

Log in into an existing vault:

./napass login <enc-file>

All you need is a password to the specific vault. Afterwards, it will be encrypted and you can work with it.

Some details

Vaults are stored in encrypted (.enc files) TOML files. The structure looks something like this:

+---------------------------------------------------------------------------------+
| [salt] <=> base64( encrypted(data) ) <=> 0x00 <=> base64( encrypted(metadata) ) |
+---------------------------------------------------------------------------------+

Napass prepends the encrypted vault file with 16 byte salt (PBKDF2HMAC cryptographic function). The last part is constructed with base64-encoded and encrypted (by Fernet) TOML formatted data, null-byte separator, and special metadata which NAPASS uses to differentiate between hidden and non-hidden fields.

About

CLI password manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published