Implementation of RSA Algorithm for Speech Data Encryption and Decryption
-
Upload
ariful-hoque -
Category
Science
-
view
1.074 -
download
2
description
Transcript of Implementation of RSA Algorithm for Speech Data Encryption and Decryption
![Page 1: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/1.jpg)
Md. Ariful HoqueRoll No: MSc 140202Discipline : CSEKhulna University
![Page 2: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/2.jpg)
Data communication.
Vital role of Cryptography.
Phone communication.
E-commerce.
Pay-TV.
Transmitting financial information.
Video Conferencing.
2
![Page 3: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/3.jpg)
Cryptosystem.Encryption
Decryption
Symmetric cryptosystem.
RSA cryptographic algorithm.
Uses a pair of related keys -Private key
Public key
3
![Page 4: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/4.jpg)
Record 500 Bangla speech words.
Extract data.
Stored in a text file as integer data.
Encrypt and decrypt.
4
![Page 5: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/5.jpg)
Speech Word
5
Recording of Bangla speech words.
Recorded as wav file.
Sampling rate 8.00 KHz.
Coded in 8 bits PCM.
![Page 6: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/6.jpg)
Speech Word
Preprocessing and Data Extraction
6
Discard 58 bytes from beginning.
Extract require voiced data.
Contain silence, unvoiced and voice.
Stored in a text file.
![Page 7: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/7.jpg)
Speech Word
Preprocessing and Data Extraction
Public key {e, n}
7
![Page 8: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/8.jpg)
Speech Word
Preprocessing and Data Extraction
Encryption Process
8
Public key {e, n}
![Page 9: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/9.jpg)
Speech Word
Preprocessing and Data Extraction
Encryption Process
Private key {d, n}
Public key {e, n}
9
![Page 10: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/10.jpg)
Speech Word
Preprocessing and Data Extraction
Encryption Process
Decryption Process
Public key {e, n}
10
Private key {d, n}
![Page 11: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/11.jpg)
Speech Word
Preprocessing and Data Extraction
Encryption Process
Decryption Process
Original Speech Word
Private key {d, n}
Public key {e, n}
11
![Page 12: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/12.jpg)
12
![Page 13: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/13.jpg)
13
Random Number Generator
![Page 14: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/14.jpg)
14
Random Number Generator
Rand FIFO
![Page 15: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/15.jpg)
15
Random Number Generator
Rand FIFO
PrimalityTester
![Page 16: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/16.jpg)
16
Random Number Generator
Rand FIFO
PrimalityTester
Prime FIFO
![Page 17: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/17.jpg)
17
Random Number Generator
Rand FIFO
PrimalityTester
Prime FIFO
N=p*q∅(n)=(p-1)(q-1)
![Page 18: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/18.jpg)
18
Random Number Generator
Rand FIFO
PrimalityTester
Prime FIFO
N=p*q∅(n)=(p-1)(q-1)
n
![Page 19: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/19.jpg)
19
Random Number Generator
Rand FIFO
PrimalityTester
Prime FIFO
N=p*q∅(n)=(p-1)(q-1)
gcd(e, ∅(n))=11<e< ∅(n)
n
![Page 20: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/20.jpg)
20
Random Number Generator
Rand FIFO
PrimalityTester
Prime FIFO
N=p*q∅(n)=(p-1)(q-1)
gcd(e, ∅(n))=11<e< ∅(n)
e n
![Page 21: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/21.jpg)
21
Random Number Generator
Rand FIFO
PrimalityTester
Prime FIFO
N=p*q∅(n)=(p-1)(q-1)
gcd(e, ∅(n))=11<e< ∅(n)
e.d =1mod ∅(n0 ≤d ≤n
e n
![Page 22: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/22.jpg)
22
Random Number Generator
Rand FIFO
PrimalityTester
Prime FIFO
N=p*q∅(n)=(p-1)(q-1)
gcd(e, ∅(n))=11<e< ∅(n)
e.d =1mod ∅(n0 ≤d ≤n
d e n
![Page 23: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/23.jpg)
23
e n Public key
![Page 24: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/24.jpg)
24
d
e n
n
Public key
Private key
![Page 25: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/25.jpg)
25
M
![Page 26: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/26.jpg)
26
M
e
n
![Page 27: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/27.jpg)
27
M
e
n
Modular Exponentiation Me mod n
![Page 28: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/28.jpg)
28
M
e
n
CModular Exponentiation Me mod n
![Page 29: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/29.jpg)
29
C
![Page 30: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/30.jpg)
30
C
d
n
![Page 31: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/31.jpg)
31
C
d
n
Modular Exponentiation Cd mod n
![Page 32: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/32.jpg)
32
C
d
n
MModular Exponentiation Cd mod n
![Page 33: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/33.jpg)
33
Input: A, B, n Output: E = AB mod n
LR binary method
E <= 1; for i = k-1 to 0
If Bi =1E <= A*E mod nend if
if i ≠ 0 E <= E*E mod n; end if
end for return E;
![Page 34: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/34.jpg)
34
![Page 35: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/35.jpg)
Objective.
500 speech words recorded.
Saved as .wav format.
Extracted integer data.
Taken txt file as input.
Produce unreadable message.
35
![Page 36: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/36.jpg)
RSA algorithm used to encrypt and decrypt.
M lies in the range .
Encrypt 500 word at a time.
Limitations.
36
![Page 37: Implementation of RSA Algorithm for Speech Data Encryption and Decryption](https://reader033.fdocuments.in/reader033/viewer/2022042508/559b21f81a28abdb738b481f/html5/thumbnails/37.jpg)
Thanks To All
37