public function regenerateHash()
    {
        $this->hashWorkingRecord->{$this->hashDbField} = $this->encrypt();

        if ($this->hashMustBeUnique && !$this->hasUniqueHash()) {
            $this->regenerateHash();
        }
    }