fix in installer for user admin
This commit is contained in:
Ronald Q
2016-09-01 15:43:01 -04:00
parent b1534386f4
commit 1454ad308a
8 changed files with 24 additions and 10 deletions

View File

@@ -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
*