Skip to content

Instantly share code, notes, and snippets.

View whanjiang's full-sized avatar

hanjiang whanjiang

View GitHub Profile
@whanjiang
whanjiang / decrypt.java
Created August 6, 2018 10:03 — forked from Haehnchen/decrypt.java
PHP encrypt and JAVA decrypt with openssl and AES-128-CBC
public static String decrypt(@NotNull String input, @NotNull String key){
byte[] bytes = Base64.decodeBase64(input);
if(bytes.length < 17) {
return null;
}
byte[] ivBytes = Arrays.copyOfRange(bytes, 0, 16);
byte[] contentBytes = Arrays.copyOfRange(bytes, 16, bytes.length);
@whanjiang
whanjiang / strip.conf
Last active August 29, 2015 14:26 — forked from dextorer/strip.conf
google-play-services-strip-script
actions=true
ads=true
analytics=true
appindexing=true
appstate=true
auth=true
cast=true
common=true
drive=false
dynamic=true