RSA Public Key Encryption and Signing (32bit)

バージョン 1.0.0.0 (2.77 KB) 作成者: Vincent Wilms
Basic RSA Public Key encryption and signing to demonstrate the principle.
ダウンロード: 2.4K
更新 2015/10/11

ライセンスの表示

This submission was created to learn a bit about RSA Public Key encryption and signing. It consists of the following files:
GenerateKeyPair (Generates the public and private key)
Encrypt (using the public key)
Decrypt (using the private key)
Sign (using the private key)
Verify (using the public key)
Test (giving an example how these functions are used)

and two helper functions:

ExtendedEuclideanAlgorithm
ModularExponentiation

Unfortunately the randseed command of the Communications System Toolbox ist required at the moment. To remove this dependency it is possible to enter the two random prime numbers manually in the GenerateKeyPair script.

Since the purpose of this small framework is to understand the basic principle of RSA, I did not implement a biginteger type and also did not optimize the helper functions for huge numbers (2048 bit). The randseed command provides prime numbers up to 1000 or ~2^10.

引用

Vincent Wilms (2024). RSA Public Key Encryption and Signing (32bit) (https://www.mathworks.com/matlabcentral/fileexchange/53457-rsa-public-key-encryption-and-signing-32bit), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2013a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersEncryption / Cryptography についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0

Updated description.
Updated preview image.