Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.zip.*;
- import javax.crypto.spec.*;
- import javax.crypto.*;
- class Main{
- public static void main(String[] args){
- try{
- FileInputStream in=new FileInputStream(args[0]);
- ZipInputStream zip=new ZipInputStream(in);
- ZipEntry entry;
- while((entry=zip.getNextEntry())!=null){
- if(entry.getName().equals("assets/setting")){
- byte key[] = new byte[(int)entry.getSize()];
- zip.read(key, 0, (int)entry.getSize());
- /// this cipher is secret ///
- Cipher cipher = Cipher.getInstance("AES/ECB/ISO10126Padding");
- cipher.init(2, new SecretKeySpec("03nWNpmRjtmsXw95".getBytes("UTF-8"),"AES"));
- String key2=new String(cipher.doFinal(key));
- System.out.println(key2);
- break;
- }
- }
- }catch(Exception e){}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment