Skip to content

Latest commit

 

History

History
103 lines (75 loc) · 2.7 KB

File metadata and controls

103 lines (75 loc) · 2.7 KB

Bhairava Engine

A lightweight cryptographic engine built in C using OpenSSL


Overview

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.


Visual Concept

Secure data flow: Input → Encryption Engine → Protected Output


Quick Start

1. Clone the repository 2. Build 3.Encrypt 4.Decrypt

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

Integration (For Developers)

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 );

Security Model

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

Example Workflow

echo "Secret Message" > input.txt
./bhairav encrypt input.txt secure.bhv pass123
./bhairav decrypt secure.bhv output.txt pass123

Real-World Use Cases

1.Secure login systems 2.Encrypted file storage 3.Embedded system security modules 4.IoT device data protection 5.Custom security frameworks

Glimpse of the Engine:

2026-04-30
  1. You have to remember the password you gave else encryption will fail. The example is shown.
  2. You have to maintain the proper structure.
  3. Further security related updates are coming for covering the vulnerabilities.

Security Notice

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.

SECURITY FLAW DETECTED: UPDATES COMING SOON