Sha_binary = crypto:hash(sha, "14292520241963008744cef58c7e0a284d06a2fcef5a61f4bee4"). Hex_string = << <<Y>> || <<X:4>> <= Sha_binary, Y <- integer_to_list(X,16) >>. string:to_lower(binary_to_list(Hex_string)).
原文:http://www.cnblogs.com/weibaer/p/4434997.html