RSA-OAEP-matlab

버전 1.1.0 (8.07 KB) 작성자: Ahmed Salah
RSA-OAEP encryption-decryption using matlap
다운로드 수: 96
업데이트 날짜: 2020/8/24

About

RSA encryption using Optimal Asymmetric Encryption Padding with matlab which encrypts and dycrypts text in a query file.

Dependecies

you will need only the vpi package: https://www.mathworks.com/matlabcentral/fileexchange/22725-variable-precision-integer-arithmetic

Introduction

RSA is a famous encryption-decryption system which is oftenly used along with the OAEP to ensure the security of the data.

Using random n bits primes the rsa is encrypting a messege after the OAEP converts the charachters uint8 representation to random encoding using random-oracle hash functions like SHA-256 which is used here.

the RSA then uses the two random primes to generate the public and the private keys, encrypt the messege with the public key save it in a file and then decrypt it in another file using the private key to get the numbers generated by the OAEP earlier on the sender side.

The OAEp decrypts the messege and gets the original messege back and saves it in a folder.

Limitations

* The code is slow as the vpi package takes a big time in calculations.

You can try using one of the alternatives in this post to boost speed: https://www.mathworks.com/matlabcentral/answers/116949-big-integer-speed-vpi-and-symbolic

* The function isprime can be further improved to make the time costly check more fast or to use prior check different than fermat's little theorem that is more percise.

This link can be helpful: https://www.geeksforgeeks.org/prime-numbers/ (I suggest using Lucas test)

인용 양식

Ahmed Salah (2025). RSA-OAEP-matlab (https://github.com/AhmedSalah339/RSA-OAEP-matlab/releases/tag/V1.1.0), GitHub. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2020a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0

See release notes for this release on GitHub: https://github.com/AhmedSalah339/RSA-OAEP-matlab/releases/tag/V1.1.0

1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.