Skip to content

Instantly share code, notes, and snippets.

View kkokey's full-sized avatar
🎯
Focusing

namedboy kkokey

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kkokey on github.
  • I am kkokey (https://keybase.io/kkokey) on keybase.
  • I have a public key ASBBB7pKoPjHvPC0-zSVgbPhG623APPcUwH8mLwYP3A6Hgo

To claim this, I am signing this object:

public static String problem01(String str){
final int defaultCountVal = 1;
// String str = "abbaccchhaa";
// str = "a";
StringBuffer stb = new StringBuffer();
int arrFirstIdx = 0;
// str.length 가 65535가 넘어가면 아래 로직은 사용할 수 없다.
/**
* HmacSHA512
*
* @see <http://drumcoder.co.uk/blog/2011/apr/21/calculate-hmac-hash-java/>
* @param String value
* @param String secret
* @return String
*/
private String buildHmacSignature(String value, String secret) {
String result;