looking for simple PHP multi way encryption method

前端 未结 3 1455
一向
一向 2020-12-18 13:52

I need to decrypt encrypted POST value strings with the aid of a secret static key.

I have had a look into crypt() (but it\'s only one-way) and Mcrypt, GnuPG,... but

3条回答
  •  一个人的身影
    2020-12-18 14:42

    This is the only basic built in function I know of.

    $string = "/path/img.jpg";
    
    $scramble = str_rot13($string);
    
    echo "

    Scrambled: ".$scramble; echo "

    Unscrambled: ".str_rot13($scramble);

提交回复
热议问题