Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2006, 02:35 AM
Authorized User
 
Join Date: Feb 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default DECRYPTING Data?

Hi
I want to encrypt and decrypt data, and in one of ASP.net Starter Kits, i found that you can encrypt using the following method:

public static string Encrypt(string cleanString)
        {
  Byte[] clearBytes = new UnicodeEncoding().GetBytes(cleanString);
  Byte[] hashedBytes = ((HashAlgorithm)CryptoConfig.CreateFromName("MD5") ).ComputeHash(clearBytes);

            return BitConverter.ToString(hashedBytes);

        }
string EncryptedData = Encrypt(CleanData);

My problem is that i cannot decrypt the data, anyone has any ideas?

 
Old March 28th, 2006, 05:46 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Look through the System.Security.Cryptography, it will provide you with the necessary means to decrypt your data if you are stuck check out MSDN.

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
Decrypting pgp files with vbscript tonyromero99 VBScript 4 June 4th, 2008 04:09 AM
Bad data when decrypting using RSA scotthcw ASP.NET 2.0 Basics 0 December 8th, 2006 11:10 PM
encrypting and decrypting money field in c# skajani ASP.NET 1.0 and 1.1 Professional 3 August 8th, 2006 07:12 AM
problem decrypting bluelaser General .NET 0 October 10th, 2004 10:18 AM
Encrypting and Decrypting chipset VB How-To 0 July 27th, 2004 07:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.