Greetings, I am developing an application that reads a DES encrypted password generated using Java in a properties file and decrypts it, using DESCryptoServiceProvider. I am provided with the key string originally generated with Java using DES. Does anyone have an example or sample code that converts/uses a Java generated key to decrypt a Java generated password in C#? After removing the dashes, I get the "Specified key is not a valid size for this algorithm" exception. I've tried both of these lines of code and get the same error: static byte[] key = ASCIIEncoding.ASCII.GetBytes(dashKey.Replace("-", "")); OR static byte[] key = Encoding.ASCII.GetBytes(dashKey.Replace("-", "")); The error occurrs at either of the below lines of code I tried: cryptoProvider.Key = key; OR ICryptoTransform decryptor = cryptoProvider.CreateDecryptor(key, iv); Thanks, Karl