password = $keyMaterial; } public function encrypt(string $plainText): string { return Crypto::encryptWithPassword($plainText, $this->password); } public function decrypt(string $cipherText): string { return Crypto::decryptWithPassword($cipherText, $this->password); } }