Commit 5c4db9e2 authored by zeroleak's avatar zeroleak
Browse files

AESUtil.encrypt(): always use UTF-8 for String encoding

parent 499bb10e
......@@ -162,7 +162,7 @@ public class AESUtil {
// String ret = Base64.encodeBase64String(ivAppended);
byte[] raw = Base64.encodeBase64(ivAppended);
return new String(raw);
return new String(raw, "UTF-8");
private static byte[] cipherData(BufferedBlockCipher cipher, byte[] data) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment