MCPcopy
hub / github.com/borgbackup/borg / pbkdf2

Method pbkdf2

src/borg/crypto/key.py:449–452  ·  view source on GitHub ↗
(passphrase, salt, iterations, output_len_in_bytes)

Source from the content-addressed store, hash-verified

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(

Calls 1

getMethod · 0.45