Rough encrypt
This commit is contained in:
		| @@ -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
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/Misc/defuse-crypto.phar
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user