Rough encrypt

This commit is contained in:
2021-09-02 11:23:35 -04:00
parent 65a34f5b65
commit f8f37fe6e2
15 changed files with 566 additions and 17 deletions

View File

@@ -19,6 +19,7 @@
namespace App\LobbySIO\Misc;
use App\LobbySIO\Config\Registry;
use SimpleSAML\Auth\Simple;
use Defuse\Crypto\Key;
/**
* Miscellaneous junk probably not even deserving of a class but whatever
@@ -26,6 +27,11 @@ use SimpleSAML\Auth\Simple;
* @author josh.north
*/
class StaticFunctions {
public function loadEncryptionKeyFromConfig() {
$keyAscii = Registry::ENCKEY;
return Key::loadFromAsciiSafeString($keyAscii);
}
public function getVersion ($app_disp_lang) {
$Translate = new \App\LobbySIO\Language\Translate($app_disp_lang);
$transLang = $Translate->userLanguage();

BIN
src/Misc/defuse-crypto.phar Normal file

Binary file not shown.