Is there a way to encrypt with XOR and represent in HEX (and the reverse). (I suppose not, couldn’t find that).
Is there an alternative? I don’t want to use Base64.
So I need to encrypt and represent the result in a readable form.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is a function applying a XOR to a string, then return the result as hexadecimal:
Such basic XOR is not strong at all. It’s very easy to guess the key code, which is only one Char.
But this function will work with both Unicode and not Unicode strings.