Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. .net framework encryption that can be easily decoded on unix

.net framework encryption that can be easily decoded on unix

Scheduled Pinned Locked Moved C#
csharppythonperldotnetlinux
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tfoxcreatek
    wrote on last edited by
    #1

    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!

    E 1 Reply Last reply
    0
    • T tfoxcreatek

      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!

      E Offline
      E Offline
      Expert Coming
      wrote on last edited by
      #2

      Try this: http://dev.mainsoft.com/Default.aspx?tabid=177[^]

      T 1 Reply Last reply
      0
      • E Expert Coming

        Try this: http://dev.mainsoft.com/Default.aspx?tabid=177[^]

        T Offline
        T Offline
        tfoxcreatek
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • T tfoxcreatek

          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.

          L Offline
          L Offline
          liRetro
          wrote on last edited by
          #4

          You may want to look up simple encryption/decryption routines in Perl first, and then get that to work. After finding out what already exists on the Unix box, you can then program to it using .NET. Assert(this);

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups