Results 1 to 4 of 4

Thread: Decrypting Registry Data in .net

  1. #1
    Join Date
    May 2009
    Posts
    54

    Decrypting Registry Data in .net

    Well, I am first time trying to use and encryption and decryption thing in .net. I have several important data and some information which I want protect. I want to ask you how can I decrypt a registry data. Then how can I store a encrypt connection string in the registry. Here what I am first trying to do is to decrypt a registry key that stores a password. I need to know how can I pass a registry into the code. Thanks in advance of any suggestions.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Decrypting Registry Data in .net

    Here by using the two classes the first one is CEncrypt and CRegister you can encrypt and decrypt a registry key. The encryption part is useful when you want to store any important information like user names and passwords in the registry. The encrypt is declared in <wincrypt.h> syntax. For example see the code below -
    Code:
    #define _WIN32_WINNT 0x0400
    #include "wincrypt.h"
    Here we will use CryptDeriveKey for the purpose of encryption and decryption. You will need to configure some settings in CEncrypt class before calling the above function. Download the below source code. It will be help to you.

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Decrypting Registry Data in .net

    Their many third party tools available on the internet which can decrypt any file for your if you want to save your time by going is advance coding. The one I use is Nirsoft. It is a freeware tool. It decrypts and displays all the list of userassist entries stored in your system. The second one is Cryptocx. It is an open pgp and aes compatible encryption utility dll which specifically designed to use in any development environment.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Decrypting Registry Data in .net

    To store an encrypted connection sting into the registry you will need to follow the listed instructions. Basically the registry is representing one of the possible location to store a database connection strings. But you can also try to secure individual registry key with windows access control lists. Now here the components used to encrypt a registry are connection string, initialization vector and key. You can copy the code - HKEY_LOCAL_MACHINE\Software\TestApplication. The initialization vector and key are required to be stored in the order to allow the connection string to be decrypted. You will have to store the encrypted data in registry and you will need to create a asp.net web application to perform the action.

Similar Threads

  1. Portal 2 stuck at decrypting files at 32%
    By Robert Beck in forum Video Games
    Replies: 5
    Last Post: 27-04-2011, 10:32 AM
  2. Decrypting movies dvd
    By amylii in forum Windows Software
    Replies: 3
    Last Post: 10-08-2009, 12:23 PM
  3. DVD43 - A free decrypting software
    By Michael25 in forum Windows Software
    Replies: 1
    Last Post: 18-06-2009, 11:24 AM
  4. Replies: 3
    Last Post: 18-07-2008, 12:09 PM
  5. "file containing system's registry data had to be recovered" - PC
    By Chad Gross in forum Windows XP Support
    Replies: 2
    Last Post: 29-11-2007, 04:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,225,329.00944 seconds with 17 queries