How To Make Encryption and Decryption Machine
ENCRYPTION AND DECRYPTION
The program will convert the normal english into code ,which can be to normal english later on .Only those people will decrypt the message who knows the secret key. this is also known as CAESAR CIPHER.
WORKING
Suppose my message is "I am iron man " if i wants to decrypts the message having key value 4 then the encrypted message will be "M eq mvsr qer" .If the receiver wants to decrypts the with same key value of 4 then the message will be "I am iron man".
To decrypt the message reader needs to know key value (This makes security of the message). If the reader has different key value message will be different.
Keyvalue is basically a difference between encrypted and decrypted word.
For example: message = "I am iron man"
keyvalue =4
decrypted message= "M eq mvsr qer"
I ,J , K ,L ,M
1 2 3 4 5
SOURCE CODE :
OUTPUT :
But it is not secure as by using the reverse of what you did anyone could get back the real message. One key value and adding it to every letter would be easily caught.
ReplyDelete