diff --git a/client/src/com/aerospike/client/util/Crypto.java b/client/src/com/aerospike/client/util/Crypto.java index 21db56904..4fc3abe65 100644 --- a/client/src/com/aerospike/client/util/Crypto.java +++ b/client/src/com/aerospike/client/util/Crypto.java @@ -48,10 +48,7 @@ public static byte[] decodeBase64(byte[] src, int off, int len) { return Base64.decode(src, off, len); } - /** - * Encode bytes into a base64 encoded string. - */ public static String encodeBase64(byte[] src) { - return Base64.encode(src, 0, src.length, false); + return ENCODER.encodeToString(src); } }