Skip to main content

Python 3, Cracked

import hmac def my_hash(x): assert type(x) == bytes return hmac.digest(x, b'good luck', 'sha256') 

Function takes bytes. There are no typing/Python tricks here, it's a pure crypto challenge.

Python 3

import hmac def my_hash(x): assert type(x) == bytes return hmac.digest(x, b'good luck', 'sha256') 

Function takes bytes. There are no typing/Python tricks here, it's a pure crypto challenge.

Python 3, Cracked

import hmac def my_hash(x): assert type(x) == bytes return hmac.digest(x, b'good luck', 'sha256') 

Function takes bytes. There are no typing/Python tricks here, it's a pure crypto challenge.

Source Link
Sisyphus
  • 15.1k
  • 3
  • 48
  • 89

Python 3

import hmac def my_hash(x): assert type(x) == bytes return hmac.digest(x, b'good luck', 'sha256') 

Function takes bytes. There are no typing/Python tricks here, it's a pure crypto challenge.