MCPcopy
hub / github.com/geekcomputers/Python / get_password

Function get_password

password_manager.py:18–24  ·  view source on GitHub ↗
(service_)

Source from the content-addressed store, hash-verified

16
17
18def get_password(service_):
19 command = 'SELECT * from STORE WHERE SERVICE = "' + service_ + '"'
20 cursor = conn.execute(command)
21 for row in cursor:
22 username_ = row[1]
23 password_ = row[2]
24 return [username_, password_]
25
26
27def add_password(service_, username_, password_):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected