From 268eae78136a2ef2c2fe53aee4f003ffa6bf9a89 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 28 Mar 2014 18:31:04 +0100 Subject: [PATCH] fixed login issue with latest ejabberd --- src/eu/siacs/conversations/utils/CryptoHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/eu/siacs/conversations/utils/CryptoHelper.java b/src/eu/siacs/conversations/utils/CryptoHelper.java index b9641d21e..74f942bf2 100644 --- a/src/eu/siacs/conversations/utils/CryptoHelper.java +++ b/src/eu/siacs/conversations/utils/CryptoHelper.java @@ -5,7 +5,6 @@ import java.security.SecureRandom; import java.util.Random; import android.util.Base64; -import android.util.Log; public class CryptoHelper { final protected static char[] hexArray = "0123456789ABCDEF".toCharArray(); @@ -22,7 +21,7 @@ public class CryptoHelper { } public static String saslPlain(String username, String password) { String sasl = '\u0000'+username + '\u0000' + password; - return Base64.encodeToString(sasl.getBytes(Charset.defaultCharset()),Base64.DEFAULT); + return Base64.encodeToString(sasl.getBytes(Charset.defaultCharset()),Base64.NO_WRAP); } public static String randomMucName() {