neerajnanvani / PracticeGitAndJs

Its an practice repo to create pull request and use more github features
0 stars 10 forks source link

Caeser cipher #29

Closed rajat1722 closed 1 year ago

rajat1722 commented 2 years ago

resolve #28

created a alphabets array for storing all alphabets created a alphaInd object for connecting alphabets to their indexes in alphabets array

then run a for loop for every character in message, and find the index of current character using alphaInd object in alphabets array, then added the key in that index for getting new index

Stored the encrypted msg in a variable