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
| public static String sha1(String s, String keyString) throws | |
| UnsupportedEncodingException, NoSuchAlgorithmException, | |
| InvalidKeyException { | |
| Mac mac = Mac.getInstance("HmacSHA1"); | |
| SecretKeySpec secret = new SecretKeySpec(keyString.getBytes("UTF-8"), mac.getAlgorithm()); | |
| mac.init(secret); | |
| byte[] digest = mac.doFinal(s.getBytes()); | |
| String retVal = Base64.encodeBase64String(digest); |
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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
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
| [log] | |
| decorate = short | |
| [color] | |
| ui = auto | |
| [pager] | |
| status = true | |
| show-branch = true | |
| [rebase] | |
| autosquash = true |