MSFN Forum: Encrypts & Decrypts text file and stores the plain text in a text - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Encrypts & Decrypts text file and stores the plain text in a text Rate Topic: -----

#1 User is offline   RYU81 

  • Member
  • PipPip
  • Group: Members
  • Posts: 267
  • Joined: 02-June 04

Posted 13 November 2009 - 04:54 PM

I want to do it with VB.NET to DES or AES or RSA.

like this:

Encrypts the content of a text file and stores the cipher in another text file.
Decrypts a cipher stored in a text file and stores the plain text in a text file.
Your program should read from the user the path of the cipher and the plain text along with the key and either he/she wishes to encrypt or decrypt.
You may use one of the following languages to develop your program: C++, JAVA or VB.NET.
If you got the help of any packages or ready code, pleas mention it and provide all the resource you've used.
You can chose on or more of these algorithms to encrypt or decrypt.
o DES.
o AES.
o RSA.

This post has been edited by RYU81: 14 November 2009 - 03:59 PM



#2 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,258
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 14 November 2009 - 04:36 PM

View PostRYU81, on Nov 13 2009, 05:54 PM, said:

I want to do it with VB.NET to DES or AES or RSA

Just check out the official documentation on MSDN, particularly for the System.Security.Cryptography namespace. It implements everything you're asking for crypto-wise.

For example, here's a sample that uses the DESCryptoServiceProvider. There also are AesCryptoServiceProvider and RSACryptoServiceProvider classes (another example here) which you can use similarly.

There's also countless articles on dozens of community sites like here, and google should find more relevant hits than you're ever going to be able to read if you use the right keywords.

Honestly, this stuff is trivial. It's the key management part that's a pain. You don't normally want to leave those around in text files (even text files you're going to delete as they're often easily recovered). Preferably, you use a hash of a salted password as encryption key or something along those lines. Your system is only secure as its weakest link, and if we can easily get the keys, then your encryption is pointless, no matter if it uses a fancy algo with 2048 bit key.

#3 User is offline   RYU81 

  • Member
  • PipPip
  • Group: Members
  • Posts: 267
  • Joined: 02-June 04

Posted 17 November 2009 - 09:14 PM

thx alot CoffeeFiend.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy