KeyFC欢迎致辞,点击播放
资源、介绍、历史、Q群等新人必读
KeyFC 社区总索引
如果你找到这个笔记本,请把它邮寄给我们的回忆
KeyFC 漂流瓶传递活动 Since 2011
 

[M作] [注意升级] 土豆星文彻底复兴!

[ 25910 查看 / 25 回复 ]

回复:[M作] 响应复兴土豆星文化号召,绝版土豆星文套件再发~~ (包括从未发布的工具!)

多次加密这个………………长度……突然想起我的废柴级的x8体积加密……………………
= =
发出无奈的声音一次………………
附上某的代码……付了KP就要充分发挥KP作用-v-
= =以下代码有NC成分,请注意:
  1. import java.io.*;



  2. public class turnintoUnReadable {



  3.     /**

  4.      * @param args

  5.      */

  6.     /**

  7.      * *

  8.      * 使用说明

  9.      * 第一个参数 为Miz 或Unmiz 对应加密或解密

  10.      * 第二个参数 为文件名

  11.      * 第三个参数 为Password

  12.      * 密码为1-8的整数,位数不限

  13.      */

  14.     //static final byte Turn[]={3,2,4,8,7,5,8,4,3,1,3,8,5,4,7,6,2,3,4,5,6,4,4,1,2,3,6,4,5};

  15.    

  16.     static FileInputStream fis;

  17.     static FileOutputStream fos;

  18.     //static DataInputStream dis;

  19.     static DataOutputStream dos;

  20.     //0 is Mized or Unmized

  21.     public static void main(String[] args) {

  22.         try{

  23.             fis=new FileInputStream(args[1]);

  24.             fos=new FileOutputStream(args[1]+"Done"+Math.random()+".mysterious");

  25.             dos=new DataOutputStream(fos);

  26.             //dis=new DataInputStream(fis);

  27.             if(args[0].equalsIgnoreCase("Miz")){

  28.                 Mized(args[2],fis,dos);

  29.                 dos.close();

  30.                 //dis.close();

  31.                 fis.close();

  32.                 fos.close();

  33.             }

  34.             if(args[0].equalsIgnoreCase("Unmiz")){

  35.                 Unmized(args[2],fis,dos);

  36.                 dos.close();

  37.                 //dis.close();

  38.                 fis.close();

  39.                 fos.close();

  40.             }

  41.            

  42.            

  43.            

  44.         }catch(Exception e){

  45.             //e.printStackTrace();

  46.             System.exit(0);

  47.         }



  48.     }

  49.     static void Mized(String Password,FileInputStream fis,DataOutputStream dos)throws Exception{

  50.         long x=0L;

  51.         //long forwrite=0L;

  52.         int X=0;//几次方

  53.         byte[] Array=new byte[Password.length()];

  54.         for (int i=0;i<Password.length();i++){

  55.             if(Integer.parseInt(Password.charAt(i)+"")==9)

  56.                 System.exit(0);

  57.             Array[i]=Byte.parseByte(Password.charAt(i)+"");

  58.         }

  59.         while(x!=-1){

  60.             int f=fis.read();

  61.             if (f==-1)

  62.                 break;

  63.             x=(long)Math.pow(f,Array[X]);

  64.             X=(X+1)%Password.length();

  65.             dos.writeLong(x);

  66.         }

  67.        

  68.     }

  69.     static void  Unmized(String Password,FileInputStream fis,DataOutputStream dos)throws Exception{

  70.         long x=0L;

  71.         //long forwrite=0L;

  72.         int X=0;//几次方根

  73.         //int n=0;

  74.         byte[] Array=new byte[Password.length()];

  75.         for (int i=0;i<Password.length();i++){

  76.             if(Integer.parseInt(Password.charAt(i)+"")==9)

  77.                 System.exit(0);

  78.             Array[i]=Byte.parseByte(Password.charAt(i)+"");

  79.         }

  80.         while(x!=-1){

  81.             long x1=0L;

  82.             int f=0;

  83.             for (int j=0;j<8;j++){

  84.             f=fis.read();

  85.             if (f==-1)

  86.                 break;

  87.             x1=(x1<<8)+f;

  88.             }

  89.            

  90.             x=Math.round(Math.pow(x1,(double)1/Array[X]));//Array[X]

  91.             X=(X+1)%Password.length();

  92.             dos.writeByte((byte)x);

  93.             if(f==-1)

  94.                 break;

  95.         }

  96.        

  97.         return;

  98.     }



  99. }

复制代码
最后编辑004307ec 最后编辑于 2007-11-01 13:20:15
本主题由 见习版主 Blackの墨 于 2012/7/25 8:27:50 执行 主题分类 操作
分享 转发
咱的blog
QmFzZTY0 (?
TOP