My C# .NET 4.6 Framework Code, ChilKat (64 Bit Nuget package) works and returns an encrypted string, and when I submit it to my "black box" it tells me "Invalid padding string (or incorrect password)". The box was built in JAVA 11 years ago or so. I have no access to the box. So I guess my real question is, what might have changed over the last decade in the way this type of Encryption is created that I might have to account for when creating code today?
Crypt2 encryptor = new Crypt2();
encryptor.CryptAlgorithm = "3des";
encryptor.KeyLength = 192;
encryptor.CipherMode = "ecb";
encryptor.RandomizeKey();
passKey = encryptor.GetEncodedKey("base64");
return encryptor.EncryptStringENC(data2Encrypt);