- Saved searches
- Use saved searches to filter your results more quickly
- License
- apache/commons-codec
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Java org apache commons codec
- Apache Commons Codec
- Impetus
- Documentation
- Releases
- Support
- Java org apache commons codec
- User guide
- Binary Encoders
- Digest Encoders
- Language Encoders
- Network Encoders
- Java org apache commons codec
- Download Apache Commons Codec
- Using a Mirror
- Apache Commons Codec 1.16.0
- Binaries
- Source
- Archives
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
License
apache/commons-codec
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
The Apache Commons Codec package contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. In addition to these widely used encoders and decoders, the codec package also maintains a collection of phonetic encoding utilities.
More information can be found on the Apache Commons Codec homepage. The Javadoc can be browsed. Questions related to the usage of Apache Commons Codec should be posted to the [user mailing list][ml].
Where can I get the latest release?
You can download source and binaries from our download page.
Alternatively, you can pull it from the central Maven repositories:
dependency> groupId>commons-codecgroupId> artifactId>commons-codecartifactId> version>1.16.0version> dependency>
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
- No tabs! Please use spaces for indentation.
- Respect the code style.
- Create minimal diffs — disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
- Provide JUnit tests for your changes and make sure your changes don’t break any existing tests by running mvn .
If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.
See the NOTICE.txt file for required notices and attributions.
You like Apache Commons Codec? Then donate back to the ASF to support the development.
Apache Commons Components
Component | GitHub Repository | Apache Homepage |
---|---|---|
Apache Commons BCEL | commons-bcel | commons-bcel |
Apache Commons Beanutils | commons-beanutils | commons-beanutils |
Apache Commons BSF | commons-bsf | commons-bsf |
Apache Commons Build-plugin | commons-build-plugin | commons-build-plugin |
Apache Commons Chain | commons-chain | commons-chain |
Apache Commons CLI | commons-cli | commons-cli |
Apache Commons Codec | commons-codec | commons-codec |
Apache Commons Collections | commons-collections | commons-collections |
Apache Commons Compress | commons-compress | commons-compress |
Apache Commons Configuration | commons-configuration | commons-configuration |
Apache Commons Crypto | commons-crypto | commons-crypto |
Apache Commons CSV | commons-csv | commons-csv |
Apache Commons Daemon | commons-daemon | commons-daemon |
Apache Commons DBCP | commons-dbcp | commons-dbcp |
Apache Commons Dbutils | commons-dbutils | commons-dbutils |
Apache Commons Digester | commons-digester | commons-digester |
Apache Commons Email | commons-email | commons-email |
Apache Commons Exec | commons-exec | commons-exec |
Apache Commons Fileupload | commons-fileupload | commons-fileupload |
Apache Commons Functor | commons-functor | commons-functor |
Apache Commons Geometry | commons-geometry | commons-geometry |
Apache Commons Graph | commons-graph | commons-graph |
Apache Commons Imaging | commons-imaging | commons-imaging |
Apache Commons IO | commons-io | commons-io |
Apache Commons JCI | commons-jci | commons-jci |
Apache Commons JCS | commons-jcs | commons-jcs |
Apache Commons Jelly | commons-jelly | commons-jelly |
Apache Commons Jexl | commons-jexl | commons-jexl |
Apache Commons Jxpath | commons-jxpath | commons-jxpath |
Apache Commons Lang | commons-lang | commons-lang |
Apache Commons Logging | commons-logging | commons-logging |
Apache Commons Math | commons-math | commons-math |
Apache Commons Net | commons-net | commons-net |
Apache Commons Numbers | commons-numbers | commons-numbers |
Apache Commons Parent | commons-parent | commons-parent |
Apache Commons Pool | commons-pool | commons-pool |
Apache Commons Proxy | commons-proxy | commons-proxy |
Apache Commons RDF | commons-rdf | commons-rdf |
Apache Commons Release-plugin | commons-release-plugin | commons-release-plugin |
Apache Commons Rng | commons-rng | commons-rng |
Apache Commons Scxml | commons-scxml | commons-scxml |
Apache Commons Signing | commons-signing | commons-signing |
Apache Commons Skin | commons-skin | commons-skin |
Apache Commons Statistics | commons-statistics | commons-statistics |
Apache Commons Testing | commons-testing | commons-testing |
Apache Commons Text | commons-text | commons-text |
Apache Commons Validator | commons-validator | commons-validator |
Apache Commons VFS | commons-vfs | commons-vfs |
Apache Commons Weaver | commons-weaver | commons-weaver |
Java org apache commons codec
Apache Commons Codec
Apache Commons Codec (TM) software provides implementations of common encoders and decoders such as Base64, Hex, Phonetic and URLs.
Impetus
Codec was formed as an attempt to focus development effort on one definitive implementation of the Base64 encoder. At the time of Codec’s proposal, there were approximately 34 different Java classes that dealt with Base64 encoding spread over the Foundation’s CVS repository. Developers in the Jakarta Tomcat project had implemented an original version of the Base64 codec which had been copied by the Commons HttpClient and Apache XML project’s XML-RPC subproject. After almost one year, the two forked versions of Base64 had significantly diverged from one another. XML-RPC had applied numerous fixes and patches which were not applied to the Commons HttpClient Base64. Different subprojects had differing implementations at various levels of compliance with the RFC 2045.
Out of that confusing duplication of effort sprang this simple attempt to encourage code reuse among various projects. While this package contains an abstract framework for the creation of encoders and decoders, Codec itself is primarily focused on providing functional utilities for working with common encodings.
Documentation
An overview of the functionality is provided in the user guide. Various project reports are also available.
The Javadoc API documents are available online:
Releases
See the Download Page for the latest releases.
For previous releases, see the Apache Archive
Support
The commons mailing lists act as the main support forum. The user list is suitable for most library usage queries. The dev list is intended for the development discussion. Please remember that the lists are shared between all commons components, so prefix your email by [codec].
Issues may be reported via ASF JIRA.
Copyright © 2002-2023 The Apache Software Foundation. All Rights Reserved.
Apache Commons, Apache Commons Codec, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Java org apache commons codec
User guide
Codec consists of a set of utilities and a simple framework for encoding and decoding text and binary data.
Binary Encoders
Interfaces and classes used by the various implementations in the sub-packages.
Base32 | Provides Base32 encoding and decoding as defined by RFC 4648 |
Base32InputStream | Provides Base32 encoding and decoding in a streaming fashion (unlimited size). |
Base64 | Provides Base64 encoding and decoding as defined by RFC 2045 |
Base64InputStream | Provides Base64 encoding and decoding in a streaming fashion (unlimited size). |
BinaryCodec | Converts between byte arrays and strings of «0»s and «1»s. |
Hex | Converts hexadecimal Strings. |
Digest Encoders
DigestUtils | Simplifies common MessageDigest tasks and provides GNU libc crypt(3) compatible password hashing functions. |
Blake3 | Provides a pure Java implementation of the Blake3 hash function which can be used for computing cryptographic hashes (message digests) which are extensible to arbitrary output lengths (known as an extensible-output function or XOF), computing message authentication codes using a 32 byte (256-bit) secret key, computing subkeys from a primary key using a key derivation function, and can be used as the basis for a cryptographically-secure pseudorandom number generator. WARNING: Blake3 is not a password hashing algorithm! An algorithm such as Argon2 is more appropriate for password hashing. |
Language Encoders
Caverphone 1.0 | Encodes a string into a Caverphone 1.0 value. |
Caverphone 2.0 | Encodes a string into a Caverphone 2.0 value. |
Cologne Phonetic | Encodes a string into a Cologne Phonetic value. |
Double Metaphone | Encodes a string into a double metaphone value. |
Metaphone | Encodes a string into a Metaphone value. |
Refined Soundex | Encodes a string into a Refined Soundex value. |
Soundex | Encodes a string into a Soundex value. |
Network Encoders
Copyright © 2002-2023 The Apache Software Foundation. All Rights Reserved.
Apache Commons, Apache Commons Codec, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Java org apache commons codec
Download Apache Commons Codec
Using a Mirror
We recommend you use a mirror to download our release builds, but you must verify the integrity of the downloaded files using signatures downloaded from our main distribution directories. Recent releases (48 hours) may not yet be available from all the mirrors.
You are currently using https://dlcdn.apache.org/. If you encounter a problem with this mirror, please select another mirror. If all mirrors are failing, there are backup mirrors (at the end of the mirrors list) that should be available.
It is essential that you verify the integrity of downloaded files, preferably using the PGP signature ( *.asc files); failing that using the SHA512 hash ( *.sha512 checksum files).
The KEYS file contains the public PGP keys used by Apache Commons developers to sign releases.
Apache Commons Codec 1.16.0
Binaries
Source
Archives
Older releases can be obtained from the archives.
Copyright © 2002-2023 The Apache Software Foundation. All Rights Reserved.
Apache Commons, Apache Commons Codec, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.