From ec1aaf1d0ffc94a5aebcdf0c2b097b2692f754fd Mon Sep 17 00:00:00 2001 From: Netkas Date: Wed, 7 Dec 2022 19:53:10 -0500 Subject: [PATCH] Minor bug fix in \ncc\Objects\Vault > Entry > unlock() https://git.n64.cc/nosial/ncc/-/issues/27 --- src/ncc/Objects/Vault/Entry.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ncc/Objects/Vault/Entry.php b/src/ncc/Objects/Vault/Entry.php index f0d4b1e..6f52b6b 100644 --- a/src/ncc/Objects/Vault/Entry.php +++ b/src/ncc/Objects/Vault/Entry.php @@ -149,6 +149,7 @@ return false; $this->Password = $this->encrypt(); + var_dump($this->Password); return true; } @@ -210,8 +211,8 @@ if(!($this->Password instanceof PasswordInterface)) return null; - $password = ZiProto::encode($this->Password->toArray(true)); - return Crypto::encryptWithPassword($password, $password, true); + $data = ZiProto::encode($this->Password->toArray(true)); + return Crypto::encryptWithPassword($data, (string)$this->Password, true); } /**