Exemple #1
0
 public function __construct($hashType)
 {
     $this->hashType = $hashType;
     CryptoUtils::initTable();
 }
Exemple #2
0
 /**
  * DefaultEncryption constructor.
  * @param $key string the encryption key. The key must have exactly 10 bytes
  */
 public function __construct($key)
 {
     CryptoUtils::initTable();
     $this->reset($key);
 }