it shows how to do what you need with a file, you just need to adjust it to work with your string instead of a file. I'm pretty sure the "secret code" you mention is the same as the "Key" or "Secret Key" referred to in this article. That's the general concept of keyed cryptography.
I hope that helps. Let me know if you have any trouble getting the function on that MS page to do what you want.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.