MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _credential_master_key

Function _credential_master_key

IntelOSINT.py:1997–2011  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1995
1996
1997def _credential_master_key():
1998 machine_id = "|".join([
1999 socket.gethostname(),
2000 str(uuid.getnode()),
2001 str(Path.home()),
2002 os.environ.get("USERNAME", ""),
2003 os.environ.get("USER", "")
2004 ])
2005 return hashlib.pbkdf2_hmac(
2006 "sha256",
2007 machine_id.encode("utf-8", errors="ignore"),
2008 CRED_STORE_SALT.encode("utf-8", errors="ignore"),
2009 160_000,
2010 dklen=32
2011 )
2012
2013
2014def _fernet_key():

Callers 1

_decrypt_credsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected