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