Skip to content

Instantly share code, notes, and snippets.

@denglj
Created July 7, 2016 03:24
Show Gist options
  • Save denglj/e76c043fe627809d627b995ff26ce9ef to your computer and use it in GitHub Desktop.
Save denglj/e76c043fe627809d627b995ff26ce9ef to your computer and use it in GitHub Desktop.
happy mother's day
#!/usr/bin/env python
# encoding: utf-8
s = '''35d6f6fc8f580d9fa6ef5a2847
3276b4e86ff12f59d158fc5747
d8753dbf31ccf6fd3381aaf61d
4f6fc703df8f31d339232f0c18'''
result = []
for i in range(0x53):
result.append(
chr((lambda s, i:
((s & (0x1f << i * 5)) >> i * 5) + 65)
(int(''.join(s.split()), 16) +
(0x520ABCDEEDCBA520 << 256), i)
))
print(''.join(result)[::-1].replace('_', ' '))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment