Make an Encryption Program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfman2307
    New Member
    • May 2010
    • 1

    #1

    Make an Encryption Program

    Hi,

    I want to make a simple encryption program.

    My idea is to have an input and an output text box. When the user presses a button the program will encode what is in the input text box and output it into the output text box. I also want to encrypt it with a secret key where the user enters a letter or set of letters into a separate text box which will effect the output. This process can be reversed to decrypt.

    I have a few ideas but im hoping someone can help me out.

    I have an idea maybe converting the input and key text to an integer, multiplying them which give a long number as an output but im not sure if that is possible.

    If anyone has any ideas how i could go about making this id really appreciate it :)

    I have a limited knowledge of VB but I have forgotten alot of it

    Thanks
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    So, what is this for? Are you needing to encrypt a value in a way that you can reverse the value as well? Or are you just needing to hash a value (like a one-way encryption)?

    The .NET Framework already provides tools to do both of these. The System.Security .Cryptography namespace has many useful tools already premade for you.

    Honestly, the best resource I can point you towards is google:


    One problem you'll run into is that most of the algorithms for encrypting strings can result with some non-printable characters, so outputting them may not look the way you think it would.

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      Just do a google for "msdn cryptography" for the built in crypto namespace. Don't re-invent the wheel when there tools already for it

      Comment

      • mfaisalwarraich
        New Member
        • Oct 2007
        • 194

        #4
        This is good tutorial with example and may help you:

        Comment

        • tlhintoq
          Recognized Expert Specialist
          • Mar 2008
          • 3532

          #5
          There are so many good tutorials out there on this:
          Let Me Google That For You (LMGTFY): for all those people who find it more convenient to bother you with their question rather than search it for themselves.

          Comment

          Working...