MCPcopy Create free account
hub / github.com/RNCryptor/RNCryptor-python / _hmac

Method _hmac

rncryptor.py:174–175  ·  view source on GitHub ↗
(self, key, data)

Source from the content-addressed store, hash-verified

172 return AES.new(key, AES.MODE_CBC, iv).decrypt(text)
173
174 def _hmac(self, key, data):
175 return hmac.new(key, data, hashlib.sha256).digest()
176
177 def _prf(self, secret, salt):
178 return hmac.new(secret, salt, hashlib.sha1).digest()

Callers 2

decryptMethod · 0.95
encryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected