Giter Club home page Giter Club logo

halloweeks / custom-aes Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 56 KB

This is a modified version of the AES-128 CBC encryption algorithm. In this custom implementation, encryption and decryption are possible without requiring an Initialization Vector (IV). Instead, the IV is derived from the last and first round key during the encryption and decryption process.

License: MIT License

C 100.00%
aes aes-128-cbc aes-algorithms aes-cipher aes-decryption aes-encryption aes-in-c

custom-aes's Introduction

Custom AES-128 CBC Encryption Algorithm

This is a modified version of the AES-128 CBC encryption algorithm, designed to meet specific security and convenience requirements. In this custom implementation, encryption and decryption are possible without requiring an Initialization Vector (IV). Instead, the IV is dynamically generated from the last round key during the decryption process.

Features

  • No Padding: This custom algorithm does not support padding for data that doesn't fit into complete 16-byte blocks. Data must be preprocessed to ensure it aligns with the block size.

  • Simplified Use: When data is prepared in 16-byte blocks, this algorithm provides a straightforward means to encrypt and decrypt it without the need for external IV management.

  • Security: The data is divided into 16-byte blocks, and each block is XORed with the previous ciphertext block before being encrypted with the 128-bit key. This results in secure data that can only be decrypted using this custom algorithm.

Usage

To encrypt data:

EncryptData(data, size, key);

To decrypt data:

DecryptData(data, size, key);

Output is returned in the same memory location as the input data.

Note: Data encrypted with this custom algorithm cannot be decrypted using the standard AES-128 decryption process, making it suitable for specific security requirements where traditional AES encryption may not suffice.

custom-aes's People

Contributors

halloweeks avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.