> Is there a way to decrypt a Streamsec AES (CBC) encrypted string using SynaAES > > var AES :TSynaAes; > aes := TSynaAes.Create(mykey); > //aes.SetIV(mykey); ?? > sr := aes.DecryptCBC(st); > > this obviously does not work
You must know: 1) how to use a key. Sometimes it must be padded to X bytes, etc. For example, in SMTP protocol it is: aes := TSynaAes.Create(PadString(FPrivKey, 16, #0)); 2) IV (Inicialization Vector) is mandatory! Various application computing IV by a different ways, include salting. If you not know both, then you must study StreamSec default values. -- Lukas Gebauer. http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. https://www.geoget.cz/ - Geocaching solution _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public