Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有可能在 php 中进行某种非常简单的可逆加密,可以使用 C# Winforms 进行反转?
谢谢你
是的。算法不是特定于语言的。
当然。在 PHP 部分中,您可以使用按位运算符^,但您首先必须将字符串转换为整数数组(例如array_map('ord', str_split($str))),然后使用一次性填充进行内积,xor 起到乘法和连接的作用承担加法的作用。
^
array_map('ord', str_split($str))
请记住,如果您重复使用该键盘,加密的安全性就会崩溃。