MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / create_auth_verifier

Function create_auth_verifier

keepercommander/utils.py:245–249  ·  view source on GitHub ↗
(password, salt, iterations)

Source from the content-addressed store, hash-verified

243
244
245def create_auth_verifier(password, salt, iterations): # type: (str, bytes, int) -> bytes
246
247 derived_key = crypto.derive_key_v1(password, salt, iterations)
248 enc_iter = int.to_bytes(iterations, length=3, byteorder='big', signed=False)
249 return b'\x01' + enc_iter + salt + derived_key
250
251
252def is_url(test_str): # type: (str) -> bool

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected