HOR-1765
fix in installer for user admin
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
class G
|
||||
{
|
||||
const hashFx = 'md5';
|
||||
const hash = 'hash';
|
||||
const hashFile = 'md5_file';
|
||||
const hashCrc = 'crc32';
|
||||
public $sessionVar = array(); //SESSION temporary array store.
|
||||
@@ -5730,6 +5731,18 @@ class G
|
||||
$consthashFx = self::hashFx;
|
||||
return $consthashFx($string);
|
||||
}
|
||||
/**
|
||||
* encryptSha
|
||||
*
|
||||
* @param string $string
|
||||
*
|
||||
* @return sha256($string)
|
||||
*/
|
||||
public static function encryptHash($string)
|
||||
{
|
||||
$consthash = self::hash;
|
||||
return $consthash('sha256', $string);
|
||||
}
|
||||
/**
|
||||
* encryptFileOld
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user