A
A
Alexander Alexandrovich2014-05-17 02:42:25
PHP
Alexander Alexandrovich, 2014-05-17 02:42:25

Encoding\Decoding in php?

Please tell me, there is a need to encode \ decode a string,
as an example, it is desirable that it be in this form:

$key = "Ключ для шифрования";
$string = "Строка которую нужно зашифровать";
//Зашифровываем строку 
$cipher= function XXX ($key, $string,);
//Расшифровываем строку
$itog = function XXX ($key, $cipher);

I read about Mcrypt, but it requires installation on the server, which is not allowed. Does anyone have any thoughts on this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Solovey, 2015-05-06
@naghtigall

Here is an interesting article: habrahabr.ru/sandbox/92985

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question