Exemplo n.º 1
0
 public function __construct($hashType)
 {
     $this->hashType = $hashType;
     CryptoUtils::initTable();
 }
Exemplo n.º 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);
 }