Java MD5 decryMd5(String source)

Here you can find the source of decryMd5(String source)

Description

decry Md

License

Apache License

Declaration

public static String decryMd5(String source) 

Method Source Code

//package com.java2s;
/**//from   ww  w  .  j ava 2  s . c  om
 *  Copyright (c) 2012 The Anyuaning Open Source Project
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

public class Main {

    public static String decryMd5(String source) {
        String s = convertMd5(source);
        return convertMd5(s);
    }

    private static String convertMd5(String source) {
        if (source == null) {
            throw new NullPointerException();
        }

        char[] c = source.toCharArray();
        for (int i = 0; i < c.length; i++) {
            c[i] = (char) (c[i] ^ 't');
        }

        String result = new String(c);

        return result;
    }
}

Related

  1. byteArrayMD5(byte[] entity)
  2. core_md5(int[] K, int F)
  3. decodeMd5(String source)
  4. digestMD5(byte[] data)
  5. digestMd5(final String value)
  6. digestMD5(String buffer, String key)
  7. digestMD5(String data)