Encryption with AES algorithm in Java
问题 I made a packet p, with some integers and boolean values. The packet is as follows: TCPPacket p=new TCPPacket(481,516,23,42,true,false,false,false,false,false,false,false,10,10); How can I encrypt the packet with AES, in Java? 回答1: I suggest you read through the tutorial Using AES with Java Technology from Oracle. (First hit on Google btw.) 回答2: This is some sample code that should get you started. It uses AES (128) to crypt and decrypt an object (using SealedObject). public class App {