How do I write an encryption program?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: How do I write an encryption program?

  1. #1
    Join Date
    Oct 2004
    Location
    Long Beach, CA
    Posts
    179

    Exclamation How do I write an encryption program?

    Hi guys, it's Apollyon here, and I was wondering, how do I write an encryption program? Nothing to simple, just one that would encrypt, decrypt, and shred files and emails. Any info?

  2. #2
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211

    Re: How do I write an encryption program?


  3. #3
    Join Date
    Oct 2004
    Location
    Long Beach, CA
    Posts
    179

    Exclamation Re: How do I write an encryption program?

    Thanks, but, could you give me like some source code, an algorithm, stuff like that, 'cause I'm really trying to write a brand new algorithm.
    The nerds will rule over the common folk. The geeks will rule over the nerds. The supergeeks will rule over the geeks. The hackers will rule over the supergeeks. The superhackers will rule over the hackers. Mwhahaha; I'll rule you all!!!

  4. #4
    Join Date
    Jan 2001
    Posts
    588

    Re: How do I write an encryption program?

    Then what is your question? If you're making up the algorithm, why would you need source code for other algorithms?

    Try not to ask such general questions like "How do I write an xxxxxxxxxx program?". Investigate for yourself; Google can work wonders.

  5. #5
    Join Date
    Oct 2004
    Location
    Long Beach, CA
    Posts
    179

    Exclamation Re: How do I write an encryption program?

    Sorry, didn't phrase that question correctly. I was really trying to say, can you give me some source code for Alogorithms like AES, 3DES,Rijndael.
    The nerds will rule over the common folk. The geeks will rule over the nerds. The supergeeks will rule over the geeks. The hackers will rule over the supergeeks. The superhackers will rule over the hackers. Mwhahaha; I'll rule you all!!!

  6. #6
    Join Date
    Jun 2002
    Posts
    936

    Re: How do I write an encryption program?

    If you want to understand incription basic, it is very simple. You simnply xor our byte with some value. For instance if you have have a text file, you can convert the characters to ascii format then xor them with a value.

  7. #7
    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    762

    Re: How do I write an encryption program?

    Start with something basic and work from there. Why don't you try a simple xor encryption and decryption method (as vcstarter mentioned)?

    You shouldn't need the actual source code for any actual encryption methods as long as it's well enough documented in how it works so you can easily translate it into code. I had a link to a site that explained how several different algorithms worked but I no longer have the link. I'll try to find it or maybe someone can post a good site like that.

  8. #8
    Join Date
    Oct 2004
    Location
    Long Beach, CA
    Posts
    179

    Exclamation Re: How do I write an encryption program?

    Actually, I'd like to combine AES and 3DES to create something like 3AES or something
    The nerds will rule over the common folk. The geeks will rule over the nerds. The supergeeks will rule over the geeks. The hackers will rule over the supergeeks. The superhackers will rule over the hackers. Mwhahaha; I'll rule you all!!!

  9. #9
    Join Date
    May 2004
    Posts
    45

    Re: How do I write an encryption program?

    There are three famous C and C++ encryption libraries freely available:

    OpenSSL - http://www.openssl.org - used in every web server (except Microsoft IIS and Netscape Web Server) you know.

    CryptLib - http://www.cryptlib.orion.co.nz - it's easy to use and fool-proof.

    Crypto++ - http://www.eskimo.com/~weidai/cryptlib.html - It's a C++ library, but it's not easy to use because uses a lot of templated code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center