aes:=aes;
aes.Key:=Encoding.UTF8.GetBytes('ABCDJNDKJKDFNKNSNKS');
//aes.GenerateIV;
Encryptor:=aes.CreateEncryptor();
msEncrypt:=msEncrypt.MemoryStream;
csEncrypt:=csEncrypt.CryptoStream(msEncrypt,Encryptor,CryptoStreamMode.Read);
swEncrypt:=swEncrypt.StreamWriter(csEncrypt);
swEncrypt.Write(JsonString);
Encoded:=Convert.ToBase64String(msEncrypt.ToArray);
MESSAGE('%1',Encoded);
//--