is it possible to have some sort of very simple reversible encryption in php that can be reversed using C# Winforms?
thank you
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.
Sure. In the PHP part you can use the bitwise operator
^, but you’ll first have to convert the string into an array of integers (e.g.array_map('ord', str_split($str))) and then do an inner product with the one-time pad, xor taking the role of multiplication and concatenation taking the role of addition.Remember that if you re-use the pad, the security of the encryption falls apart.