This is just a simple encryption algorithm, but it doesn't take any key element to encrypt. The index value of a character acts as a key element. let me tell you an example: Testcase 1: msg="hello world" Explanation: index of 'h' is 0,so we add nothing to the ascii value of 'h index of 'e' is 1,so we add 1 to the ascii value of 'e' i.e., 'f' index of 'l' is 2,so we add 2 to the ascii value of 'l' i.e., 'n' In order to decrease the large numbers,we apply mod 26(number of alphabets).
-
Notifications
You must be signed in to change notification settings - Fork 0
notthefakekowshik/Encrypting_message
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published