Hello I've been working on some encryption, and I have to buy the output encryption into a .cpp file, so you can imagine this has been a massive hassle since some encrypted characters are from the windows-1251 charset and everything else.

Can someone help me? I need to be able to convert the output from the encryption into something I can easily implement into another .cpp as a string and have it compile fine.

I was thinking converting it to hex would be the easiest. So if someone could help, that'd be great.

And how would I convert it back from hex when the encrypted string is used in the .cpp?