MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / set_crypt_key

Function set_crypt_key

web/pgadmin/utils/master_password.py:16–22  ·  view source on GitHub ↗

Set the crypt key :param _key: The key :param _new_login: Is fresh login or password change

(_key, _new_login=True)

Source from the content-addressed store, hash-verified

14
15
16def set_crypt_key(_key, _new_login=True):
17 """
18 Set the crypt key
19 :param _key: The key
20 :param _new_login: Is fresh login or password change
21 """
22 current_app.keyManager.set(_key, _new_login)
23
24
25def get_crypt_key():

Callers 2

set_master_passwordFunction · 0.90
change_passwordFunction · 0.90

Calls 1

setMethod · 0.45

Tested by

no test coverage detected