@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | // Append an "a" behind the password and hash it to prevent reusing the same password as for encryption |
77 | - $password = hash('sha512', $password . 'a'); |
|
77 | + $password = hash('sha512', $password.'a'); |
|
78 | 78 | |
79 | 79 | $hash = new Hash('sha512'); |
80 | 80 | $hash->setKey($password); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $this->cipher->setPassword($encryptionKey); |
144 | 144 | $this->cipher->setIV($iv); |
145 | 145 | |
146 | - if (!hash_equals($this->calculateHMAC($parts[0] . $parts[1], $hmacKey), $hmac)) { |
|
146 | + if (!hash_equals($this->calculateHMAC($parts[0].$parts[1], $hmacKey), $hmac)) { |
|
147 | 147 | throw new \Exception('HMAC does not match.'); |
148 | 148 | } |
149 | 149 |