Created
June 5, 2018 08:45
-
-
Save cessor/7cbe869eb33ff1a0ff2785bd16bc3138 to your computer and use it in GitHub Desktop.
Hash an Ip Address
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib | |
| def hash_ip(self, ip_address): | |
| return hashlib.sha224(ip_address.encode('utf-8')).hexdigest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment