Java MD5 md5Encode(byte[] content)

Here you can find the source of md5Encode(byte[] content)

Description

md Encode

License

Open Source License

Declaration

public static String md5Encode(byte[] content) 

Method Source Code

//package com.java2s;
/**********************************************************************************************
 *
 * Asprise Scanning and Imaging API//from w w w.  j  av  a 2  s  .  co  m
 * Copyright (C) 1998-2016. Asprise Inc. <asprise.com>
 *
 * This file is licensed under the GNU Affero General Public License version 3 as published by
 * the Free Software Foundation.
 *
 * 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.
 *
 * You should have received a copy of the GNU Affero General Public License.  If not, please
 * visit <http://www.gnu.org/licenses/agpl-3.0.html>.
 *
 **********************************************************************************************/

import javax.xml.bind.DatatypeConverter;

public class Main {
    public static String md5Encode(byte[] content) {
        return DatatypeConverter.printBase64Binary(content);
    }
}

Related

  1. md5(String source)
  2. md5(String toDigest)
  3. md5_hh(int C, int B, int G, int F, int A, int E, int D)
  4. md5_id(byte[] md5digest)
  5. md5bytesToHex(byte[] md5)
  6. md5Encode(String strIn)
  7. md5HashByteToString(byte[] bytes)
  8. md5HashStringToByte(String hash)
  9. md5Hex(final String text)