を私の変数は次のようになります場合:暗号化 - 同じ変数を復号化 - PHP
$name = "John";
と私は上記の変数をしたい、のようなものを暗号化する:
encrypt($name) //Will output something like: AIfzx353HA7f (Just random chars)
そして、できることそれを復号化するので、再びJohnを出力します。
decrypt($name) //Will output John
これはPHPで可能ですか?
重複する可能性のある質問:http://stackoverflow.com/questions/1289061/best-way-to-use-php-to-encrypt-and-decrypt –
-1迅速なGoogle検索では、質問:http://www.google.com/search?client=safari&rls=en&q=encrypt+decrypt+php&ie=UTF-8&oe=UTF-8 –