Bhairava Engine is a secure, lightweight cryptographic system designed for:
File encryption & decryption
Data integrity protection (HMAC)
Password-based encryption
Easy integration into C projects
It is built as a reusable security engine, not just a CLI tool.
Secure data flow: Input → Encryption Engine → Protected Output
git clone https://github.com/ishansamanta/Bhairava-Engine.git
cd Bhairava-Engine
make
./bhairav encrypt input.txt output.bhv yourpassword
./bhairav decrypt output.bhv result.txt yourpassword
Use Bhairava Engine as a library inside your C project:
#include "bhairava_engine.h"
unsigned char output[4096];
int len = bhairav_encrypt_data_secure( input_data, input_len, password, output );
Bhairava Engine uses:
AES-256-CBC encryption PBKDF2 key derivation (password → secure key) HMAC-SHA256 integrity check Random salt + IV per encryption
Ensures confidentiality Ensures integrity Prevents tampering
echo "Secret Message" > input.txt
./bhairav encrypt input.txt secure.bhv pass123
./bhairav decrypt secure.bhv output.txt pass1231.Secure login systems 2.Encrypted file storage 3.Embedded system security modules 4.IoT device data protection 5.Custom security frameworks
- You have to remember the password you gave else encryption will fail. The example is shown.
- You have to maintain the proper structure.
- Further security related updates are coming for covering the vulnerabilities.
This project is designed for educational and engineering purposes. While it uses strong cryptographic primitives, it is not yet formally audited for enterprise-grade production security. Contributors are welcomed.
Author Ishan Samanta BTech CSE (IoT) Made by ISHAN ORGANISATION
_License
This project is licensed under the MIT License. MIT License Permission is hereby granted, free of charge, to use, copy, modify, and distribute this software.
“Security is not a feature. It is a foundation.” Bhairava Engine is built as a step toward understanding real-world cryptographic systems and secure software design.