aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-28 18:31:04 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-28 18:31:04 +0100
commit268eae78136a2ef2c2fe53aee4f003ffa6bf9a89 (patch)
treeaed1f884178acf501c57d0c5fd124e30ec106883 /src
parenta649310fe267b791461e62c3abf0a01836dde23c (diff)
fixed login issue with latest ejabberd
Diffstat (limited to 'src')
-rw-r--r--src/eu/siacs/conversations/utils/CryptoHelper.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/utils/CryptoHelper.java b/src/eu/siacs/conversations/utils/CryptoHelper.java
index b9641d21..74f942bf 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() {