Simple Substitution Cipher for all ASCII Printable Characters

Version 1.0.0.0 (2.07 KB) by FA
Generate simple substitution cipher alphabet then encodes and decodes strings messages.
187 Downloads
Updated 1 Jun 2016

View License

% Simple Substitution Encryption for ASCII Printable Characters % % % % % %
%
% Description:
% The first code section creates a cipher text alphabet by selecting
% a random permutation of the ASCII printable characters. The second code
% section encodes or decodes a phrase with ASCII printable characters
% only.
%
% Simple Substitution Cipher Explained:
% https://en.wikipedia.org/wiki/Substitution_cipher
%
% Created by FerA
% Version 1.0
% Date: 01 Jun 2016
%
% Instructions:
% - Run the first section to create a random cipher text
% - Within second section, set purpose and phrase
% - set variable "purpose" to "encode" or "decode"
% - set variabele "phrase" to a message of your choice
% - Run second section at will with various messages
%
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %

Cite As

FA (2024). Simple Substitution Cipher for all ASCII Printable Characters (https://www.mathworks.com/matlabcentral/fileexchange/57469-simple-substitution-cipher-for-all-ascii-printable-characters), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
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
1.0.0.0