chore: version inicial del codigo fuente del LMS Estafeta
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
function encrypt_decrypt($action, $string) {
|
||||
|
||||
$output = false;
|
||||
|
||||
|
||||
|
||||
$encrypt_method = "AES-256-CBC";
|
||||
|
||||
$secret_key = 'C0YwBhAR$f8vhHoBE1XZC5*bQvNa0XZ%GeZUVCTG*1F8h^RKwv';
|
||||
|
||||
$secret_iv = 'aes-256-cbc';
|
||||
|
||||
|
||||
|
||||
// hash
|
||||
|
||||
$key = hash('sha256', $secret_key);
|
||||
|
||||
|
||||
|
||||
// iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning
|
||||
|
||||
Reference in New Issue
Block a user