0% found this document useful (0 votes)
241 views3 pages

RSA Encryption and Decryption Flowchart

The document describes the RSA encryption and decryption algorithms in 3 steps or less: 1) The RSA encryption algorithm takes plaintext data as input, converts each character to a number based on its ASCII value, and then encrypts it by exponentiating it based on a public key and modulo. 2) The RSA decryption algorithm takes the ciphertext as input, converts it back to numeric values, and then decrypts it by exponentiating the values based on a private key and modulo to recover the plaintext. 3) Both processes iterate through each character of the input data and apply the encryption or decryption operations before outputting the ciphertext or recovering the plaintext.

Uploaded by

TALHA
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
241 views3 pages

RSA Encryption and Decryption Flowchart

The document describes the RSA encryption and decryption algorithms in 3 steps or less: 1) The RSA encryption algorithm takes plaintext data as input, converts each character to a number based on its ASCII value, and then encrypts it by exponentiating it based on a public key and modulo. 2) The RSA decryption algorithm takes the ciphertext as input, converts it back to numeric values, and then decrypts it by exponentiating the values based on a private key and modulo to recover the plaintext. 3) Both processes iterate through each character of the input data and apply the encryption or decryption operations before outputting the ciphertext or recovering the plaintext.

Uploaded by

TALHA
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Flowchar Enkripsi Algoritma RSA

Mulai

kunci=5
n=133

Input d data plaintext


data akademik

j=0 Y
c=” ”

j< strlen(d)

x= ord(substr(d,j,1))
e=1
k=1. m=1

m<=kunci

e=(e*x)mod n

m=m+1

e=e mod n

c=gabungkan c dengan e dan karakter null

j=j+1

Selesai
Flowchar Dekripsi Algoritma RSA

Mulai

kunci=65
n=133

j=0
e=” ”
Input d data ciphertext
data akademik
j< strlen(t)

j=0
c=” ”
a=a+(substr(t,j,1)
t=” ”
*pow(10,strlen(t)-(j+1))))
j=0

j< strlen(d) j=j+1

e=1
z= substr(d,j,1)) k=1

k< strlen(kunci)
T
Ord(z)<>0
e=(e*a)mod n
Y

Gabung t sebelum dengan z k=k+1

e=e mod n

h=chr(e)

j=j+1 p=gabungkan p dengan h

Selesai

You might also like