⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 md5algorithmhelper.java

📁 java 文件下载器。可自定义
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   Md5AlgorithmHelper.java

package org.gudy.azureus2.core3.util.test;

import java.io.PrintStream;

public class Md5AlgorithmHelper
{

	public static final int S11 = 7;
	public static final int S12 = 12;
	public static final int S13 = 17;
	public static final int S14 = 22;
	public static final int S21 = 5;
	public static final int S22 = 9;
	public static final int S23 = 14;
	public static final int S24 = 20;
	public static final int S31 = 4;
	public static final int S32 = 11;
	public static final int S33 = 16;
	public static final int S34 = 23;
	public static final int S41 = 6;
	public static final int S42 = 10;
	public static final int S43 = 15;
	public static final int S44 = 21;

	public Md5AlgorithmHelper()
	{
	}

	public static void main(String args[])
	{
		String a = "a";
		String b = "b";
		String c = "c";
		String d = "d";
		pFF(a, b, c, d, 0, 7, "0xd76aa478");
		pFF(d, a, b, c, 1, 12, "0xe8c7b756");
		pFF(c, d, a, b, 2, 17, "0x242070db");
		pFF(b, c, d, a, 3, 22, "0xc1bdceee");
		pFF(a, b, c, d, 4, 7, "0xf57c0faf");
		pFF(d, a, b, c, 5, 12, "0x4787c62a");
		pFF(c, d, a, b, 6, 17, "0xa8304613");
		pFF(b, c, d, a, 7, 22, "0xfd469501");
		pFF(a, b, c, d, 8, 7, "0x698098d8");
		pFF(d, a, b, c, 9, 12, "0x8b44f7af");
		pFF(c, d, a, b, 10, 17, "0xffff5bb1");
		pFF(b, c, d, a, 11, 22, "0x895cd7be");
		pFF(a, b, c, d, 12, 7, "0x6b901122");
		pFF(d, a, b, c, 13, 12, "0xfd987193");
		pFF(c, d, a, b, 14, 17, "0xa679438e");
		pFF(b, c, d, a, 15, 22, "0x49b40821");
		pGG(a, b, c, d, 1, 5, "0xf61e2562");
		pGG(d, a, b, c, 6, 9, "0xc040b340");
		pGG(c, d, a, b, 11, 14, "0x265e5a51");
		pGG(b, c, d, a, 0, 20, "0xe9b6c7aa");
		pGG(a, b, c, d, 5, 5, "0xd62f105d");
		pGG(d, a, b, c, 10, 9, "0x02441453");
		pGG(c, d, a, b, 15, 14, "0xd8a1e681");
		pGG(b, c, d, a, 4, 20, "0xe7d3fbc8");
		pGG(a, b, c, d, 9, 5, "0x21e1cde6");
		pGG(d, a, b, c, 14, 9, "0xc33707d6");
		pGG(c, d, a, b, 3, 14, "0xf4d50d87");
		pGG(b, c, d, a, 8, 20, "0x455a14ed");
		pGG(a, b, c, d, 13, 5, "0xa9e3e905");
		pGG(d, a, b, c, 2, 9, "0xfcefa3f8");
		pGG(c, d, a, b, 7, 14, "0x676f02d9");
		pGG(b, c, d, a, 12, 20, "0x8d2a4c8a");
		pHH(a, b, c, d, 5, 4, "0xfffa3942");
		pHH(d, a, b, c, 8, 11, "0x8771f681");
		pHH(c, d, a, b, 11, 16, "0x6d9d6122");
		pHH(b, c, d, a, 14, 23, "0xfde5380c");
		pHH(a, b, c, d, 1, 4, "0xa4beea44");
		pHH(d, a, b, c, 4, 11, "0x4bdecfa9");
		pHH(c, d, a, b, 7, 16, "0xf6bb4b60");
		pHH(b, c, d, a, 10, 23, "0xbebfbc70");
		pHH(a, b, c, d, 13, 4, "0x289b7ec6");
		pHH(d, a, b, c, 0, 11, "0xeaa127fa");
		pHH(c, d, a, b, 3, 16, "0xd4ef3085");
		pHH(b, c, d, a, 6, 23, "0x04881d05");
		pHH(a, b, c, d, 9, 4, "0xd9d4d039");
		pHH(d, a, b, c, 12, 11, "0xe6db99e5");
		pHH(c, d, a, b, 15, 16, "0x1fa27cf8");
		pHH(b, c, d, a, 2, 23, "0xc4ac5665");
		pII(a, b, c, d, 0, 6, "0xf4292244");
		pII(d, a, b, c, 7, 10, "0x432aff97");
		pII(c, d, a, b, 14, 15, "0xab9423a7");
		pII(b, c, d, a, 5, 21, "0xfc93a039");
		pII(a, b, c, d, 12, 6, "0x655b59c3");
		pII(d, a, b, c, 3, 10, "0x8f0ccc92");
		pII(c, d, a, b, 10, 15, "0xffeff47d");
		pII(b, c, d, a, 1, 21, "0x85845dd1");
		pII(a, b, c, d, 8, 6, "0x6fa87e4f");
		pII(d, a, b, c, 15, 10, "0xfe2ce6e0");
		pII(c, d, a, b, 6, 15, "0xa3014314");
		pII(b, c, d, a, 13, 21, "0x4e0811a1");
		pII(a, b, c, d, 4, 6, "0xf7537e82");
		pII(d, a, b, c, 11, 10, "0xbd3af235");
		pII(c, d, a, b, 2, 15, "0x2ad7d2bb");
		pII(b, c, d, a, 9, 21, "0xeb86d391");
	}

	public static String F(String x, String y, String z)
	{
		return (new StringBuilder()).append("((").append(x).append(" & ").append(y).append(") | ( ~").append(x).append(" & ").append(z).append("))").toString();
	}

	public static String G(String x, String y, String z)
	{
		return (new StringBuilder()).append("((").append(x).append(" & ").append(z).append(") | (").append(y).append(" & ~").append(z).append("))").toString();
	}

	public static String H(String x, String y, String z)
	{
		return (new StringBuilder()).append("(").append(x).append(" ^ ").append(y).append(" ^ ").append(z).append(")").toString();
	}

	public static String I(String x, String y, String z)
	{
		return (new StringBuilder()).append("(").append(y).append(" ^ (").append(x).append("  | ~").append(z).append("))").toString();
	}

	public static String rotateLeft(String x, int n)
	{
		return (new StringBuilder()).append("((").append(x).append(" << ").append(n).append(") | (").append(x).append(" >>> ").append(32 - n).append("))").toString();
	}

	public static int T(int i)
	{
		return (int)(4294967296D * Math.abs(Math.sin(i)));
	}

	public static String pFF(String a, String b, String c, String d, int x, int s, String Ti)
	{
		String result = (new StringBuilder()).append(a).append(" += ").append(F(b, c, d)).append(" + x").append(x).append(" + ").append(Ti).append(";").toString();
		result = (new StringBuilder()).append(result).append("\n").toString();
		result = (new StringBuilder()).append(result).append(a).append(" = ").append(b).append(" + ").append(rotateLeft(a, s)).append(";").toString();
		System.out.println(result);
		return result;
	}

	public static String pGG(String a, String b, String c, String d, int x, int s, String Ti)
	{
		String result = (new StringBuilder()).append(a).append(" += ").append(G(b, c, d)).append(" + x").append(x).append(" + ").append(Ti).append(";").toString();
		result = (new StringBuilder()).append(result).append("\n").toString();
		result = (new StringBuilder()).append(result).append(a).append(" = ").append(b).append(" + ").append(rotateLeft(a, s)).append(";").toString();
		System.out.println(result);
		return result;
	}

	public static String pHH(String a, String b, String c, String d, int x, int s, String Ti)
	{
		String result = (new StringBuilder()).append(a).append(" += ").append(H(b, c, d)).append(" + x").append(x).append(" + ").append(Ti).append(";").toString();
		result = (new StringBuilder()).append(result).append("\n").toString();
		result = (new StringBuilder()).append(result).append(a).append(" = ").append(b).append(" + ").append(rotateLeft(a, s)).append(";").toString();
		System.out.println(result);
		return result;
	}

	public static String pII(String a, String b, String c, String d, int x, int s, String Ti)
	{
		String result = (new StringBuilder()).append(a).append(" += ").append(I(b, c, d)).append(" + x").append(x).append(" + ").append(Ti).append(";").toString();
		result = (new StringBuilder()).append(result).append("\n").toString();
		result = (new StringBuilder()).append(result).append(a).append(" = ").append(b).append(" + ").append(rotateLeft(a, s)).append(";").toString();
		System.out.println(result);
		return result;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -