有没有大牛帮我解读下 下面的bytecode代码,最好翻译成java形式

淘技术 软件开发  2017-11-20 04:04:30
// Byte code:
// 0: getstatic 56 com/medicom/core/security/AesEncrypt:object Ljava/lang/Object;
// 3: dup
// 4: astore 5
// 6: monitorenter
// 7: getstatic 44 com/medicom/core/security/AesEncrypt:cipher Ljavax/crypto/Cipher;
// 10: iload_1
// 11: aload_2
// 12: new 153 javax/crypto/spec/IvParameterSpec
// 15: dup
// 16: aload_3
// 17: invokestatic 155 com/medicom/core/security/AesEncrypt:hex (Ljava/lang/String;)[B
// 20: invokespecial 158 javax/crypto/spec/IvParameterSpec:<init> ([B)V
// 23: invokevirtual 161 javax/crypto/Cipher:init (ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
// 26: getstatic 44 com/medicom/core/security/AesEncrypt:cipher Ljavax/crypto/Cipher;
// 29: aload 4
// 31: invokevirtual 165 javax/crypto/Cipher:doFinal ([B)[B
// 34: astore 6
// 36: getstatic 53 com/medicom/core/security/AesEncrypt:threadLocal Ljava/lang/ThreadLocal;
// 39: aload 6
// 41: invokevirtual 168 java/lang/ThreadLocal:set (Ljava/lang/Object;)V
// 44: aload 6
// 46: aload 5
// 48: monitorexit
// 49: areturn
// 50: aload 5
// 52: monitorexit
// 53: athrow
// 54: astore 5
// 56: aload_0
// 57: aload 5
// 59: invokespecial 133 com/medicom/core/security/AesEncrypt:fail (Ljava/lang/Exception;)Ljava/lang/IllegalStateException;
// 62: athrow
// Line number table:
// Java source line #108 -> byte code offset #0
// Java source line #109 -> byte code offset #7
// Java source line #110 -> byte code offset #26
// Java source line #111 -> byte code offset #36
// Java source line #112 -> byte code offset #44
// Java source line #108 -> byte code offset #50
// Java source line #115 -> byte code offset #54
// Java source line #116 -> byte code offset #56
// Local variable table:
// start length slot name signature
// 0 63 0 this AesEncrypt
// 0 63 1 encryptMode int
// 0 63 2 key SecretKey
// 0 63 3 iv String
// 0 63 4 bytes byte[]
// 54 4 5 e GeneralSecurityException
// 34 11 6 cipherbyte byte[]
// Exception table:
// from to target type
// 7 49 50 finally
// 50 53 50 finally
// 0 49 54 java/security/InvalidKeyException
// 0 49 54 java/security/InvalidAlgorithmParameterException
// 0 49 54 javax/crypto/IllegalBlockSizeException
// 0 49 54 javax/crypto/BadPaddingException
// 50 54 54 java/security/InvalidKeyException
// 50 54 54 java/security/InvalidAlgorithmParameterException
// 50 54 54 javax/crypto/IllegalBlockSizeException
// 50 54 54 javax/crypto/BadPaddingException
...全文
146 1 点赞 打赏 收藏 举报
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
Royal_lr 2017-11-22
这个你直接装一个反编译插件就好了
  • 打赏
  • 举报
回复
相关推荐
发帖
Java EE
加入

6.7w+

社区成员

J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
申请成为版主
帖子事件
创建了帖子
2017-11-20 04:04
社区公告
暂无公告