Skip to main content
0 votes
1 answer
279 views

I have a TOTP Authenticator project which generates a six-digit one-time password using TOTP (RFC 6238). Internally it uses Base32 class from Apache Commons Codec: Base32 base32 = new Base32(); ...
Boris's user avatar
  • 24.7k
1 vote
0 answers
409 views

I'm currently using a stream based approach to convert incoming Base64 characters to a byte[] using the Apache commons-codec class org.apache.commons.codec.binary.Base64OutputStream. import java.io....
Danny's user avatar
  • 11
0 votes
0 answers
440 views

I have a spring boot project (2.1.3) in which I had to add a jar file supplied by one of our partners (Referred with com.aesenc group id). I added it as a system scoped dependency even though it is ...
user11666461's user avatar
  • 1,185
2 votes
1 answer
470 views

I have created a zip file using OpenJDK 11 and Apache Commons Compress 1.20 which is returned by an API using a Netty server. This zip file contains a gradle wrapper that has executable file ...
BunnyRabbit's user avatar
0 votes
2 answers
792 views

While decoding an Base64 encoded string to byte array (Have to do this as I have a key which can act on byte array to decrypt), I am getting outOfMemory. What are the effective ways to handle this ...
Prashanth's user avatar
  • 107
0 votes
0 answers
760 views

I have a function to compute SHA-512 digest. public Hash hash(byte[] data) { return new Hash(org.apache.commons.codec.digest.DigestUtils.sha512(data)); } It gives me the following error The ...
Zainab Iftikhar's user avatar
0 votes
2 answers
70 views

I´m building a simple app for android 4.4 and up, i have a method to decode base64 string using the apache-commons-codec library. import org.apache.commons.codec.binary.Base64; public static String ...
NormanP's user avatar
0 votes
1 answer
247 views

Base64 have many static encode methods returning byte[] as Base64.encodeBase64(stringToEncode.getBytes(StandardCharsets.UTF_8.name())); Also MessageDigest using static getInstance to encode/digest ...
Ori Marko's user avatar
  • 59.3k
1 vote
1 answer
7k views

I have the following snippet and I have some unresolved classes - mainly, Base64 String auth = username + ":" + password; byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(StandardCharsets....
Martyn's user avatar
  • 6,453
0 votes
1 answer
3k views

I am trying to encode an image file to a Base64 String using the directions on this site. The only difference is I have a groovy script (instead of Java), my entire script is just.... @Grapes( @...
AbuMariam's user avatar
  • 3,718
2 votes
1 answer
424 views

When I build test speech app with Android Studio using google v1 speech library it works fine. Using v1p1beta1 speech library, a run time error occurs when it accesses the json credentials file and ...
gary51's user avatar
  • 21
1 vote
0 answers
234 views

I'm having a string which contains the German ü character. Its UTF value is 0xFC, but its quoted-printable sequence should actually be =C3=BC instead of =FC. However, using JavaMail's MimeUtility like ...
Alexander Leithner's user avatar
0 votes
1 answer
84 views

Will using one type of encoder, to encode a binary message to base64(like the default one with jvm) and another(like apache commons codec) to decode this string to binary affect consistency of results?...
Vivek Agarwal's user avatar
0 votes
0 answers
470 views

I was used Hex.encodeHexString(byte[] hexStringByteArray); api for convert byte array to String but in two different situations not able to get the excepted values. Excepted String tcpPort = "1443"; ...
Yellappa's user avatar
  • 413
0 votes
1 answer
6k views

Using Base64 functions from the Apache Commons API and working with DSA I am trying to load a base 64 encoded public key from a file here is the method being used /** * Load a base-64 encoded public ...
cojoe's user avatar
  • 45

15 30 50 per page
1
2 3 4 5