MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / encrypt_password

Function encrypt_password

Password_Manager/pass_mng.py:8–9  ·  view source on GitHub ↗
(password)

Source from the content-addressed store, hash-verified

6cipher_suite = Fernet(key)
7
8def encrypt_password(password):
9 return cipher_suite.encrypt(password.encode())
10
11def decrypt_password(encrypted_password):
12 return cipher_suite.decrypt(encrypted_password).decode()

Callers 1

add_passwordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected