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
[ | |
{ | |
"brewery": "1", | |
"name": "Red Hook", | |
"address": "14300 NE 145th St, Woodinville, WA 98072" | |
}, | |
{ | |
"brewery": "2", | |
"name": "Fremont Brewing", | |
"address": "1050 N 34th St, Seattle, WA 98103" |
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
public static String generateSHA1Hash(String input) throws Exception { | |
MessageDigest messagedigest = MessageDigest.getInstance("SHA"); | |
messagedigest.update(input.getBytes("UTF-8")); | |
byte digest[] = messagedigest.digest(); | |
StringBuffer s = new StringBuffer(digest.length * 2); | |
int length = digest.length; | |
for (int n = 0; n < length; n++) { | |
int number = digest[n]; |