private static final String HMAC_SHA1_ALGORITHM = "HmacSHA1"; String data = "fadafadsfasdfad"; String key = "asdfasd" String sol = null; try { byte[] rel = Base64_HMACSHA1(data, key); sol = new String(rel); } catch (SignatureException e) { // TODO Auto-generated catch block e.printStackTrace(); } et4.setText(sol); public static byte[] Base64_HMACSHA1(String data, String key) throws java.security..