You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
199 B
Python

import os
from subprocess import check_output
home = os.environ['HOME']
def decrypt_password(file):
path = home + "/" + file
res = check_output(["gpg", "-dq", path])
return res.strip()