Created
March 27, 2015 07:12
-
-
Save ChinaXing/9750cce69b84aad8267f to your computer and use it in GitHub Desktop.
erlang-md5-hex-string
This file contains 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
get_md5_hex_str(Str) -> | |
X = erlang:md5(Str), | |
[begin if N < 10 -> 48 + N; true -> 87 + N end end || <<N:4>> <= X]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment