A snippet from Jaxl PHP library:
base64_encode("\x00".$user."\x00".$pass)
You can find exact details of implementation around line no. 155 here
https://github.com/abhinavsingh/JAXL/blob/v3.x/xmpp/xmpp_stream.php#L155
--
Abhinav Singh,
Bangalore, India
http://abhinavsingh.com
________________________________
From: Yoni Elentok <[email protected]>
To: [email protected]
Sent: Thursday, August 23, 2012 4:28 PM
Subject: Re: [jdev] XML Gtalk handshake
Then If i what to connect with SASL How i need to encode my user and password?
what i need to write between the user and password?
in the book " " it say "(The Base64-decoded string is
<0>alice<0>password—clearly Alice needs some instruc-
tion on best practices for information security.)"
what i need to write instead of <0>?
thanks
_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________
_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________