(passphrase, salt, iterations, output_len_in_bytes)
| 447 | |
| 448 | @staticmethod |
| 449 | def pbkdf2(passphrase, salt, iterations, output_len_in_bytes): |
| 450 | if os.environ.get("BORG_TESTONLY_WEAKEN_KDF") == "1": |
| 451 | iterations = 1 |
| 452 | return pbkdf2_hmac("sha256", passphrase.encode("utf-8"), salt, iterations, output_len_in_bytes) |
| 453 | |
| 454 | @staticmethod |
| 455 | def argon2( |