Prueba de logs

parent 6cfb18c2
<?php
namespace AppBundle\Lib;
/**
* Encripta en md5
*
* @author Luis Arcos
*/
class Crypt {
public $key = NULL;
function Crypt() {
}
function AES_Encode($plain_text) {
return base64_encode(openssl_encrypt($plain_text, "aes-256-cbc", $this->key, true, str_repeat(chr(0), 16)));
}
function AES_Decode($base64_text) {
return openssl_decrypt(base64_decode($base64_text), "aes-256-cbc", $this->key, true, str_repeat(chr(0), 16));
}
}
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment