Could anyone suggest please how I can achieve a substitution cipher style; encrypt and decrypt function in VBA. I appreciate hashing is considered the better way but I need reversible encryption. Many Thanks.
Could anyone suggest please how I can achieve a substitution cipher style; encrypt and
Share
Many thanks for all the answers provided in reference to my question, it’s good to see there are different approaches, this is one I coded yesterday morning. It allows a different cipher keyword/phrase to be used for both Upper & Lowercase letters, I have used ‘Zebras’ in this example, it also runs a second pass with the ROT13 cipher. Encryption method:
And this is the Decryption that goes with it:
I hope the coding is very simple to follow for those who do not have vast experience with VBA coding and it can be lifted straight from the page; but again thanks for all the other answers.