image thumbnail

RSA Cryptosystem

version 1.0.0 (1.52 KB) by Kevin Gonzi
Encrypts and decrypts messages using RSA.


Updated 20 Aug 2020

View License

First, enter lower and upper limit for primes, which will then be generated randomly, depending on given interall. Public and private key will be compted. Enter the message to be encrypted and confirm. Message will then be encrypted using parameters computed earlier.
Note: This function only serves as demonstration of the "real" algorithm, using an intervall bigger than 10^4 is not recommended.

Cite As

Kevin Gonzi (2021). RSA Cryptosystem (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!