zoukankan      html  css  js  c++  java
  • Decrypt.java

    import java.io.PrintStream;
    import weblogic.security.internal.*;
    import weblogic.security.internal.encryption.*;

    public class Decrypt
    {
        static EncryptionService es = null;
        static ClearOrEncryptedService ces = null;
        public static void main(String args[])
        {
            String s = null;
            if(args.length == 0)
                s = ServerAuthenticate.promptValue("Password: ", false);
            else
            if(args.length == 1)
                s = args[0];
            else
                System.err.println("Usage: java Decrypt [ password ]");
            es = SerializedSystemIni.getExistingEncryptionService();
            if(es == null)
            {
                System.err.println("Unable to initialize encryption service");
                return;
            }
            ces = new ClearOrEncryptedService(es);
            if(s != null)
                System.out.println(" Decrypted Password is:"+ces.decrypt(s));
        }
    }

  • 相关阅读:
    java第九周上机
    安卓-计算器
    安卓第四周作业
    第十五周作业
    第十三周作业
    第十三周上机作业
    第十二周作业
    第十二周上机作业
    第十一周作业
    第十一周上机作业
  • 原文地址:https://www.cnblogs.com/holdon521/p/4253225.html
Copyright © 2011-2022 走看看