Skip to content

Instantly share code, notes, and snippets.

View droberin's full-sized avatar
🤠
I'm a cowboy... In an Ostrich I must ride!

Roberto Salgado droberin

🤠
I'm a cowboy... In an Ostrich I must ride!
View GitHub Profile
@droberin
droberin / keychain.py
Created September 14, 2022 10:54 — forked from gcollazo/keychain.py
Python methods to interact with Mac OS X Keychain
import re
import os
def getpassword(service, account):
def decode_hex(s):
s = eval('"' + re.sub(r"(..)", r"\x\1", s) + '"')
if "" in s: s = s[:s.index("")]
return s