.net framework encryption that can be easily decoded on unix
-
Hi, I need to encrypt/decrypt some data for my C# application that can also be read on a unix system, and need a quick, simple, cross-platform solution I can embed in my own code that doesn't require dependencies on outside applications. I don't know much about encryption. What I would like to do is come up with an encryption/decryption code that will work with my C#/.NET framework windows code (there are a number of cryptographic functions built into the .net framework) AND a unix program (could be perl, python, shell, C, etc). One requirement is that it should run on virtually any unix system without installing additional software. AES, DES, public key, anything is really fine, but it should be a simple solution. I have tried experimenting with a lot of code out there, but I am unfamiliar enough with the process that I can't get it to work, e.g., I create an encrypted file with my C# app, try to decrypt it using a PERL or python scrip on the other end, and, I can't get it to work. If you have code in both C# on the .net side and on the unix side that would be greatly appreciated! Thanks!
-
Hi, I need to encrypt/decrypt some data for my C# application that can also be read on a unix system, and need a quick, simple, cross-platform solution I can embed in my own code that doesn't require dependencies on outside applications. I don't know much about encryption. What I would like to do is come up with an encryption/decryption code that will work with my C#/.NET framework windows code (there are a number of cryptographic functions built into the .net framework) AND a unix program (could be perl, python, shell, C, etc). One requirement is that it should run on virtually any unix system without installing additional software. AES, DES, public key, anything is really fine, but it should be a simple solution. I have tried experimenting with a lot of code out there, but I am unfamiliar enough with the process that I can't get it to work, e.g., I create an encrypted file with my C# app, try to decrypt it using a PERL or python scrip on the other end, and, I can't get it to work. If you have code in both C# on the .net side and on the unix side that would be greatly appreciated! Thanks!
Try this: http://dev.mainsoft.com/Default.aspx?tabid=177[^]
-
I really appreciate you posting a reply, but the problem with a solution like that is that I want something that will run unmodified on a unix system, without having to install compatibility libraries. For example, I would like someone to help me perhaps in using the .NET framework's AES libraries, and then duplicating the same algorithm in, say, a unix perl script that would be able to decrypt the bits generated by the .net application. I'm expecting that both the .net code and the unix code would be quite short snippets of code.
-
I really appreciate you posting a reply, but the problem with a solution like that is that I want something that will run unmodified on a unix system, without having to install compatibility libraries. For example, I would like someone to help me perhaps in using the .NET framework's AES libraries, and then duplicating the same algorithm in, say, a unix perl script that would be able to decrypt the bits generated by the .net application. I'm expecting that both the .net code and the unix code would be quite short snippets of code.