Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Apache Commons Codec Source Code
Apache Commons Codec library
provides implementations of common encoders and decoders such as Base64, Hex,
Phonetic and URLs.
Apache Commons Codec Source Code files are provided in both binary packge (commons-codec-3.15-bin.zip) and source package (commons-codec-3.15-src.zip). You can download them at Apache Commons Codec Website.
Apache Commons Codec Source Code has no dependencies. You can compile it to generate your own version of Apache Commons Codec JAR file.
The source code of Apache Commons Codec 1.15 is provided below:
✍: FYIcenter
⏎ org/apache/commons/codec/digest/MessageDigestAlgorithms.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. */ package org.apache.commons.codec.digest; import java.security.MessageDigest; /** * Standard {@link MessageDigest} algorithm names from the <cite>Java Cryptography Architecture Standard Algorithm Name * Documentation</cite>. * <p> * This class is immutable and thread-safe. * </p> * <p> * Java 8 and up: SHA-224. * </p> * <p> * Java 9 and up: SHA3-224, SHA3-256, SHA3-384, SHA3-512. * </p> * * @see <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#MessageDigest"> * Java 7 Cryptography Architecture Standard Algorithm Name Documentation</a> * @see <a href="http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#MessageDigest"> * Java 8 Cryptography Architecture Standard Algorithm Name Documentation</a> * @see <a href="https://docs.oracle.com/javase/9/docs/specs/security/standard-names.html#messagedigest-algorithms"> * Java 9 Cryptography Architecture Standard Algorithm Name Documentation</a> * @see <a href="https://docs.oracle.com/javase/10/docs/specs/security/standard-names.html#messagedigest-algorithms"> * Java 10 Cryptography Architecture Standard Algorithm Name Documentation</a> * @see <a href="https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#messagedigest-algorithms"> * Java 11 Cryptography Architecture Standard Algorithm Name Documentation</a> * @see <a href="https://docs.oracle.com/en/java/javase/12/docs/specs/security/standard-names.html#messagedigest-algorithms"> * Java 12 Cryptography Architecture Standard Algorithm Name Documentation</a> * @see <a href="https://docs.oracle.com/en/java/javase/13/docs/specs/security/standard-names.html#messagedigest-algorithms"> * Java 13 Cryptography Architecture Standard Algorithm Name Documentation</a> * * @see <a href="http://dx.doi.org/10.6028/NIST.FIPS.180-4">FIPS PUB 180-4</a> * @see <a href="http://dx.doi.org/10.6028/NIST.FIPS.202">FIPS PUB 202</a> * @since 1.7 */ public class MessageDigestAlgorithms { /** * The MD2 message digest algorithm defined in RFC 1319. */ public static final String MD2 = "MD2"; /** * The MD5 message digest algorithm defined in RFC 1321. */ public static final String MD5 = "MD5"; /** * The SHA-1 hash algorithm defined in the FIPS PUB 180-2. */ public static final String SHA_1 = "SHA-1"; /** * The SHA-224 hash algorithm defined in the FIPS PUB 180-3. * <p> * Present in Oracle Java 8. * </p> * * @since 1.11 */ public static final String SHA_224 = "SHA-224"; /** * The SHA-256 hash algorithm defined in the FIPS PUB 180-2. */ public static final String SHA_256 = "SHA-256"; /** * The SHA-384 hash algorithm defined in the FIPS PUB 180-2. */ public static final String SHA_384 = "SHA-384"; /** * The SHA-512 hash algorithm defined in the FIPS PUB 180-2. */ public static final String SHA_512 = "SHA-512"; /** * The SHA-512 hash algorithm defined in the FIPS PUB 180-4. * <p> * Included starting in Oracle Java 9. * </p> * * @since 1.14 */ public static final String SHA_512_224 = "SHA-512/224"; /** * The SHA-512 hash algorithm defined in the FIPS PUB 180-4. * <p> * Included starting in Oracle Java 9. * </p> * * @since 1.14 */ public static final String SHA_512_256 = "SHA-512/256"; /** * The SHA3-224 hash algorithm defined in the FIPS PUB 202. * <p> * Included starting in Oracle Java 9. * </p> * * @since 1.11 */ public static final String SHA3_224 = "SHA3-224"; /** * The SHA3-256 hash algorithm defined in the FIPS PUB 202. * <p> * Included starting in Oracle Java 9. * </p> * * @since 1.11 */ public static final String SHA3_256 = "SHA3-256"; /** * The SHA3-384 hash algorithm defined in the FIPS PUB 202. * <p> * Included starting in Oracle Java 9. * </p> * * @since 1.11 */ public static final String SHA3_384 = "SHA3-384"; /** * The SHA3-512 hash algorithm defined in the FIPS PUB 202. * <p> * Included starting in Oracle Java 9. * </p> * * @since 1.11 */ public static final String SHA3_512 = "SHA3-512"; /** * Gets all constant values defined in this class. * * @return all constant values defined in this class. * @since 1.11 */ public static String[] values() { // N.B. do not use a constant array here as that can be changed externally by accident or design return new String[] { MD2, MD5, SHA_1, SHA_224, SHA_256, SHA_384, SHA_512, SHA_512_224, SHA_512_256, SHA3_224, SHA3_256, SHA3_384, SHA3_512 }; } private MessageDigestAlgorithms() { // cannot be instantiated. } }
⏎ org/apache/commons/codec/digest/MessageDigestAlgorithms.java
Or download all of them as a single archive file:
File name: commons-codec-1.15-sources.jar File size: 364441 bytes Release date: 2020-09-01 Download
⇒ Download and Install commons-codec-1.15-bin.zip
2020-06-28, 96175👍, 1💬
Popular Posts:
How to read XML document with XML Schema validation from socket connections with the socket\DelayedI...
What Is poi-3.5.jar - Part 2? poi-3.5.jar is one of the JAR files for Apache POI 3.5, which provides...
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...
What Is ojdbc7.jar for Oracle 12c R1? ojdbc7.jar for Oracle 12c R1 is the JAR files of ojdbc.jar, JD...