コード例 #1
0
ファイル: BaseHashing.php プロジェクト: Rogiel/php-mpq
 public function __construct($hashType)
 {
     $this->hashType = $hashType;
     CryptoUtils::initTable();
 }
コード例 #2
0
ファイル: DefaultEncryption.php プロジェクト: Rogiel/php-mpq
 /**
  * DefaultEncryption constructor.
  * @param $key string the encryption key. The key must have exactly 10 bytes
  */
 public function __construct($key)
 {
     CryptoUtils::initTable();
     $this->reset($key);
 }