implementation of rsa algorithm for speech data encryption and decryption

37
Md. Ariful Hoque Roll No: MSc 140202 Discipline : CSE Khulna University

Upload: ariful-hoque

Post on 07-Jul-2015

1.079 views

Category:

Science


2 download

DESCRIPTION

An efficient implementation of RSA algorithm for speech data encryption and decryption. At first, five hundred Bangla speech words were recorded from six different speaker and stored as RIFF (.wav) file format. Then our developed program was used to extract data from these words and this data were stored in a text file as integer data. Finally, we used our implemented program to encrypt and decrypt speech data.

TRANSCRIPT

Page 1: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

Md. Ariful HoqueRoll No: MSc 140202Discipline : CSEKhulna University

Page 2: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

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

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

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

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

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

Speech Word

Preprocessing and Data Extraction

Public key {e, n}

7

Page 8: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

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

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

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

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

12

Page 13: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

13

Random Number Generator

Page 14: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

14

Random Number Generator

Rand FIFO

Page 15: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

15

Random Number Generator

Rand FIFO

PrimalityTester

Page 16: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

16

Random Number Generator

Rand FIFO

PrimalityTester

Prime FIFO

Page 17: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

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

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

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

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

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

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

23

e n Public key

Page 24: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

24

d

e n

n

Public key

Private key

Page 25: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

25

M

Page 26: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

26

M

e

n

Page 27: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

27

M

e

n

Modular Exponentiation Me mod n

Page 28: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

28

M

e

n

CModular Exponentiation Me mod n

Page 29: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

29

C

Page 30: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

30

C

d

n

Page 31: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

31

C

d

n

Modular Exponentiation Cd mod n

Page 32: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

32

C

d

n

MModular Exponentiation Cd mod n

Page 33: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

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

34

Page 35: Implementation of RSA Algorithm for Speech Data Encryption and Decryption

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

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

Thanks To All

37