By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,066 Members | 1,826 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,066 IT Pros & Developers. It's quick & easy.

encryption decryption of Ascii codes using substitution

P: 2
my question is how to encrypt and decrypt the ASCII values using Substitution technique?
i need this programme in C++ language
May 4 '16 #1
Share this Question
Share on Google+
2 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
I would use two arrays. One for encoding and one for decoding.

To encode, say A which is decimal 65, look in element 65 and there is your substitution value. Let's say the substitution is 123.

To decode 123 use the decode array and look in element 123,.here you will find 65 which s the A.
May 4 '16 #2

P: 2
please send me code for this
May 6 '16 #3

Post your reply

Sign in to post your reply or Sign up for a free account.