AES-256 GUI using CBC mode

Version 1.0.2 (6.46 KB) by David Hill
Advance Encryption Standard-256 encryption and decryption in a GUI. The Cipher Block Chaining (CBC) mode is used with cipher-text stealing.
Updated 25 Jan 2021

View License

Advanced Encryption Standard (AES-256) using Cipher Block Chaining (CBC) mode with cipher-text stealing. Write any sized text message (must be greater than 16 characters) into the decoded block. If message is less than 16 characters, just add spaces. Place your 256-bit hexadecimal key into the key block. Hit encode button to receive an encoded output in the encoded block. To decode, just reverse the process. Converts message input using UTF-8. You could use this with my Curve25519 elliptic curve cryptography file exchange. My curve25519 could generate a shared key which could be shared with someone over the internet. Once the other person's shared key is received, it could be used with your private key to generate the key need for AES encryption. The other person could also compute the same key using his private key and the shared key you provided to decode your message.

Cite As

David Hill (2024). AES-256 GUI using CBC mode (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Encryption / Cryptography in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated to new versions of MATLAB to eliminate warnings.


Made code improvements and simplifications.