victor.pl
FREN
← Tous les projets

Trame 014 · systèmeC

vault

Gestionnaire de mots de passe en ligne de commande, écrit en C pour comprendre de l’intérieur le stockage, la mémoire, les fichiers et la cryptographie.

Voir le dépôt sur GitLab (nouvel onglet)

README.md · version originale, en anglais

C Project Status

A lightweight password manager written in C.

Vault is a personal project built to explore low-level programming concepts through the development of a secure password manager. The goal is to understand how storage, memory management, file handling, and cryptographic mechanisms work by implementing the core components from scratch.

⚠️ This project is currently experimental and should not be used to store real passwords.


Project Logo


✨ Features

🔑 Password management

  • Store credentials locally
  • Retrieve saved entries by service name
  • Manage usernames and passwords
  • Custom vault file format

📁 Storage system

  • Custom file parser
  • Dynamic memory handling
  • Entry management
  • Local encrypted vault architecture

🔒 Security (in development)

Planned security features:

  • Password-based access control
  • Password hashing
  • Key derivation
  • Data encryption
  • Integrity verification

The cryptographic components are being developed as a learning exercise to understand how modern security systems work.


🏗️ Project goals

Vault is not only a password manager, but also a learning project focused on:

  • Manual memory management in C
  • Dynamic data structures
  • File I/O and binary data handling
  • Low-level string manipulation
  • Secure software design principles
  • Cryptography fundamentals

The objective is to understand the mechanisms behind security tools instead of relying only on external solutions.


📦 Current architecture

The project is organized around several independent components:

Vault
│
├── Storage
│   ├── File handling
│   ├── Vault parsing
│   └── Entry management
│
├── Crypto
│   ├── Key derivation
│   └── Encryption
│
├── Commands
│   └── Implementation of the commands
│
├── Input
│   ├── Interactive commands (shell like)
│   └── Redirect to typed commands to commands.c
│
└── Utils
    ├── String handling
    ├── Memory helpers
    └── Common functions

🚀 Build

Install dependencies (Debian / Ubuntu):

sudo apt install git libsodium-dev make gcc xclip

Note: libsodium is used for encryption (safer than doing one by myself) Note: xclip is used for clipboard management

Compile the project with:

make

Run:

./vault

📂 Vault format

Vault uses a custom human-readable format during development:

[CONFIG]
salt=d0e2301cb2bcc12ae2ba0dc6c1dc025f
check=8f3e... (nonce + ciphertext, hex)

[ENTRY]
service=gitlab
username=344aa45eefd3b84dec86ff6439eb8d8c537cb3e7
password=344aa45eefd3b84dec86ff6439eb8d8c537cb3e7

🛠️ Roadmap

  • Custom vault storage
  • Dynamic entry loading
  • File parsing
  • Password verification
  • Secure key derivation
  • Encryption layer
  • Vault integrity checking ([X] partially implemented with aead encryption)
  • Command-line interface improvements
  • Better error handling

🧠 Why this project?

Many applications hide complexity behind libraries and APIs. Vault is an attempt to understand what happens underneath:

  • How does a program manage memory?
  • How are files structured and parsed?
  • How are passwords transformed into cryptographic keys?
  • How does encryption actually protect data?

By rebuilding these mechanisms step by step, this project aims to provide a deeper understanding of systems programming and security.


📜 License

This project is released for educational purposes.