From e7e9bed758028e1555c9cbbcaaa29fe5504db280 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 6 Jun 2016 14:58:11 +0300 Subject: update xmpp library --- src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/juick/xmpp/s2s') diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java b/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java index 2a1fed5d..61ae89e0 100644 --- a/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java +++ b/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java @@ -7,8 +7,8 @@ import com.juick.xmpp.Message; import com.juick.xmpp.extensions.JuickMessage; import com.juick.xmpp.extensions.Nickname; import com.juick.xmpp.extensions.XOOB; -import com.juick.xmpp.utils.SHA1; import com.juick.xmpp.utils.XmlUtils; +import org.apache.commons.codec.digest.DigestUtils; import org.xmlpull.v1.XmlPullParser; import java.io.IOException; @@ -50,7 +50,7 @@ public class ConnectionRouter extends Connection implements Runnable { throw new Exception("FAIL ON FIRST PACKET"); } - msg = "" + SHA1.encode(streamID + "secret") + ""; + msg = "" + DigestUtils.sha1Hex(streamID + "secret") + ""; writer.write(msg); writer.flush(); -- cgit v1.2.3