Skip to content

NeTRuNNeRGLiTCH/CyCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ CyCode: High-Performance File Encryptor

CyCode is a robust, cross-platform C++ utility designed for secure file encryption and decryption. By leveraging the XOR Cipher and a custom Metadata Footer, it ensures your files are protected while maintaining their original identity.


๐Ÿš€ Key Features

  • Universal Compatibility: Seamlessly encrypts any file format (Images, Videos, PDFs, Executables).
  • Zero-Footprint Processing: Employs an $O(1)$ space complexity approach, processing files byte-by-byte to handle massive files without RAM overhead.
  • Smart Metadata Recovery: Implements a custom 32-byte footer to store the original file extension and a security signature.
  • Cross-Platform Core: Built to run natively on both Windows and Linux systems.

๐Ÿ› ๏ธ How It Works

The application utilizes a symmetric XOR operation. The beauty of this logic is its reversibility: $$(Plaintext \oplus Key) \oplus Key = Plaintext$$

The Custom Footer (32-Byte Structure)

To avoid losing file types after renaming to .cry, CyCode appends a metadata block:

  1. Signature (Bytes 0-14): NeTRuNNeRGLiTCH (Verification ID).
  2. Original Extension (Bytes 15-31): Stores the file type (e.g., png, mp4) to restore it during decryption.

๐Ÿ“Š Technical Performance

Metric Complexity Description
Time Complexity $O(n)$ Linear pass through file bytes.
Space Complexity $O(1)$ Minimal memory usage regardless of file size.
Encryption Type Symmetric Repeated-key XOR Cipher.

๐Ÿ’ป Installation & Build

Prerequisites

  • C++ Compiler (MSVC for Windows, GCC for Linux).
  • For Windows/Visual Studio: _CRT_SECURE_NO_WARNINGS must be defined.

Build Steps

  1. Clone the Repository:
    git clone [https://github.com/NeTRuNNeRGLiTCH/CyCode.git](https://github.com/NeTRuNNeRGLiTCH/CyCode.git)
  2. Compile:
    • Open test.sln in Visual Studio and build in Release mode.
    • Or use G++: g++ -o cycode main.cpp.

โš ๏ธ Disclaimer

This project is developed for educational purposes to explore File I/O and basic cryptographic concepts in C++. While efficient, XOR-based encryption is not intended for high-security environments compared to standards like AES-256.


About

A high-performance, cross-platform C++ CLI tool for secure file encryption and decryption using XOR cipher with a custom metadata footer system to preserve original file extensions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages