【发布时间】:2017-05-17 14:58:20
【问题描述】:
我们中的许多人都在使用破解的 Instagram API (https://i.instagram.com/api/v1/)。此 API 需要对一些调用进行签名,如下所示:
byte[] keyBytes = GenericConstants.SECRET_KEY.getBytes();
SecretKeySpec signingKey = new SecretKeySpec(keyBytes, "HmacSHA256");
Mac mac = Mac.getInstance("HmacSHA256");
mac.init(signingKey);
byte[] rawHmac = mac.doFinal(json.getBytes());
byte[] hexBytes = new Hex().encode(rawHmac);
String signetJson = String(hexBytes, "UTF-8");
请求发送为signetJson.NORMAL_JSON。
问题是SECRET_KEY 对于每个 Instagram 版本都不同,有没有办法从 Android 设备获取它,或者有人可以分享吗? ;)
【问题讨论】:
标签: android instagram-api