Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
cipher_suite = Fernet(key)
7
8
def
encrypt_password(password):
9
return
cipher_suite.encrypt(password.encode())
10
11
def
decrypt_password(encrypted_password):
12
return
cipher_suite.decrypt(encrypted_password).decode()
Callers
1
add_password
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected