module args.encrypt_helper

Short summary

module lightmlrestapi.args.encrypt_helper

Helper about encryption.

source on GitHub

Functions

function

truncated documentation

encrypt_password

Encrypts one password.

encrypt_passwords

Encrypts users passwords.

load_passwords

Loads the encrypted passwords from a filename, a dataframe, a list of tuple.

Documentation

Helper about encryption.

source on GitHub

lightmlrestapi.args.encrypt_helper.encrypt_password(pwd, algo='sha224')

Encrypts one password.

Parameters:
  • pwd – string

  • algo – algorithm used to hash passwords

Returns:

encrypted password

source on GitHub

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

source on GitHub

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}

source on GitHub