(self, password, salt, iterations=10000, key_length=32)
| 178 | return hmac.new(secret, salt, hashlib.sha1).digest() |
| 179 | |
| 180 | def _pbkdf2(self, password, salt, iterations=10000, key_length=32): |
| 181 | return KDF.PBKDF2(password, salt, dkLen=key_length, count=iterations, prf=self._prf) |
| 182 | |
| 183 | |
| 184 | def decrypt(data, password): |