module args.encrypt_helper
¶
Short summary¶
module lightmlrestapi.args.encrypt_helper
Helper about encryption.
Functions¶
function |
truncated documentation |
---|---|
Encrypts one password. |
|
Encrypts users passwords. |
|
Loads the encrypted passwords from a filename, a dataframe, a list of tuple. |
Documentation¶
Helper about encryption.
- lightmlrestapi.args.encrypt_helper.encrypt_password(pwd, algo='sha224')¶
Encrypts one password.
- Parameters:
pwd – string
algo – algorithm used to hash passwords
- Returns:
encrypted password
- lightmlrestapi.args.encrypt_helper.encrypt_passwords(users, algo='sha224')¶
Encrypts users passwords.
- Parameters:
users – dataframe or…
algo – algorithm used to hash passwords
- Returns:
password are replaced by the hashed passwords
- lightmlrestapi.args.encrypt_helper.load_passwords(source)¶
Loads the encrypted passwords from a filename, a dataframe, a list of tuple.
- Parameters:
source – filename, dataframe
- Returns:
dictionary
{user: encrypted_pwd}