rot13

A simple implementation of a rot13 encrypter/decrypter.
3.2K Downloads
Updated 22 Mar 2004

View License

This is just a simple ROT13 encoder / decoder (i.e. alphabetical shift cypher with a shift value of 13 so that the encoder and decoder is exactly the same).

It is probably close to being optimally coded in Matlab, but if it actually isn't, it's still useful for reading some comments in Slashdot :)

As for features, it preserves type case and non-alphabetical characters, and the alphabetical shift can be specified.

See cryptoshift, cryptosub and cryptodesub by Bill Higley if you want a more general shift cypher / substitution function.

Cite As

Francois Bouffard (2024). rot13 (https://www.mathworks.com/matlabcentral/fileexchange/4642-rot13), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
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

New highly optimized encryption engine ;)
Added optional alphabetical shift argument.