Back to project page steamchat.
The source code is released under:
Apache License
If you think the Android project steamchat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.kevelbreh.steamchat.steam.security; /*from w w w . j a v a2 s. c o m*/ /** * Created by kevin on 2014/08/07. */ final public class NetEncryption { byte[] sessionKey; public NetEncryption(byte[] sessionKey) { this.sessionKey = sessionKey; } public byte[] processIncoming(byte[] data) { return Cryptography.SymmetricDecrypt(data, sessionKey); } public byte[] processOutgoing(byte[] ms) { return Cryptography.SymmetricEncrypt(ms, sessionKey); } }