def test_hash_fox(self): self.assertEqual( b2a_hex(whirlpool.hash('The quick brown fox jumps over the lazy dog')), results['tqbfjotld']) self.assertEqual( b2a_hex(whirlpool.hash('The quick brown fox jumps over the lazy eog')), results['tqbfjotle'])
def test_hash_fox(self): self.assertEqual( b2a_hex( whirlpool.hash('The quick brown fox jumps over the lazy dog')), results['tqbfjotld']) self.assertEqual( b2a_hex( whirlpool.hash('The quick brown fox jumps over the lazy eog')), results['tqbfjotle'])
def test_hash_fox(self): self.assertEqual(digest2hex(whirlpool.hash(data['tqbfjotld'])), results['tqbfjotld']) self.assertEqual(digest2hex(whirlpool.hash(data['tqbfjotle'])), results['tqbfjotle'])
def test_hash_empty(self): self.assertEqual(digest2hex(whirlpool.hash(data['empty'])), results['empty'])
def _hash_multi(self, string, strength): for i in range(int(math.pow(2, strength))): string = b2a_hex(whirlpool.hash(string)) return string
def test_hash_empty(self): self.assertEqual(b2a_hex(whirlpool.hash('')), results['empty'])
# The friend I visited in europe looks so old I always make fun of him # that he must be born before jesus. Whenever possible he tells me his war # stories and how some fat guy kicked his ass. # Caesar m = caesar(m, 3) print "After Caesar = ", m # I even met a woman in europe. Her name was alice. She invited me to her # house. I was great she even had a whirlpool there. Immediately we both # jumped into it. The neighbours already shouting cozz+alice didn't really # bother me at this time. (whirlpool hash) import whirlpool m = m + "+alice" m = binascii.b2a_hex(whirlpool.hash(m)) for _ in xrange(50): m = binascii.b2a_hex(whirlpool.hash(m)) match = re.search("78\d{6}", m) if match: # Got the phone number. Slice it out. print m m = re.sub(match.group(0), '', m) print m # When I had to get back to america I was looking for my flight number 888 at # the airport, but I couldnt find it anywhere. So I called another friend in # europe and asked him for advice. He has won his first race championship in # 1996 in europe driving with a speed of 160 miles per hour. This friend now # guided me really really quickly until I found my flight back home. Funny # thing was that my flight number was at the very beginning of the airport.
print "After 'cashing in' numbers = ", m # The friend I visited in europe looks so old I always make fun of him # that he must be born before jesus. Whenever possible he tells me his war # stories and how some fat guy kicked his ass. # Caesar m = caesar(m, 3) print "After Caesar = ", m # I even met a woman in europe. Her name was alice. She invited me to her # house. I was great she even had a whirlpool there. Immediately we both # jumped into it. The neighbours already shouting cozz+alice didn't really # bother me at this time. (whirlpool hash) import whirlpool m = m + "+alice" m = binascii.b2a_hex(whirlpool.hash(m)) for _ in xrange(50): m = binascii.b2a_hex(whirlpool.hash(m)) match = re.search("78\d{6}", m) if match: # Got the phone number. Slice it out. print m m = re.sub(match.group(0), '', m) print m # When I had to get back to america I was looking for my flight number 888 at # the airport, but I couldnt find it anywhere. So I called another friend in # europe and asked him for advice. He has won his first race championship in # 1996 in europe driving with a speed of 160 miles per hour. This friend now # guided me really really quickly until I found my flight back home. Funny # thing was that my flight number was at the very beginning of the airport.