Questions tagged [apache-commons-codec]

Apache Commons Codec provides implementations of common encoders and decoders such as Base64, Hex, Phonetic and URLs.

Apache Commons Codec was originally designed to be the definitive Base64 encoder, as there existed many different implementations.

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.

http://commons.apache.org/proper/commons-codec/

63 questions
-1
votes
0 answers

error: encodeBase64() not defined for class

In the code below, imageInByte is a byte array. I'm receiving the following error: encodeBase64() is undefined for class rsa1 import org.apache.commons.codec.binary.Base64; public class rsa1 { public static void main(String args[]) { …
shree
  • 125
  • 1
  • 4
  • 15
-1
votes
1 answer

org.apache.commons.codec.digest.Md5Crypt.md5Crypt function. exception occured under linux, but fine under windows

We are using commons-codec to encrypt passwords, using the org.apache.commons.codec.digest.Md5Crypt.md5Crypt function. It works fine on a Windows environment, but on CentOS, an exception is thrown. We have 3 centOS test servers: one is centOS7, one…
Anson .K
  • 57
  • 5
-1
votes
1 answer

Issue with DigestUtils md5Hex

I am using org.apache.commons.codec.digest.DigestUtils.md5Hex() from Apache-Commons-Codec to calculate the mD5 of a concatenated string , however I get different mD5 hashcode values for the same string. I see the following output , my expectation…
user1965449
  • 2,849
  • 6
  • 34
  • 51
1 2 3 4
5