mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-08 04:55:08 +09:00
basic skeleton of control panel
This commit is contained in:
1 parent
399e634a79
commit
5effea0c0c
92 files changed
+68296
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace fruithost;
|
||||
|
||||
class Encryption {
|
||||
public static function encrypt($data, $secret) {
|
||||
return base64_encode(openssl_encrypt($data, 'aes-256-cbc', $secret, 0, substr(ENCRYPTION_SALT, 0, 16)));
|
||||
}
|
||||
|
||||
public static function decrypt($data, $secret) {
|
||||
return openssl_decrypt(base64_decode($data), 'aes-256-cbc', $secret, 0, substr(ENCRYPTION_SALT, 0, 16));
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user