473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Encrypting & Decrypting String that can be placed in a text file

I'm looking for a way to Encrypt & Decrypt Data in a String Value that can be
placed in a text file. All i'm finding are items that storing the encrypted
value in a text file can be problematic because of special characters. I'm
looking possible at SecureQuerryString, any other option? What is
recommended?
Nov 21 '05 #1
3 979
Check out
System.Web.Security.FormsAuthentication.HashPasswo rdForStoringInConfigFile

On Thu, 17 Mar 2005 06:17:03 -0800, "G Leifheit"
<GL*******@discussions.microsoft.com> wrote:
I'm looking for a way to Encrypt & Decrypt Data in a String Value that can be
placed in a text file. All i'm finding are items that storing the encrypted
value in a text file can be problematic because of special characters. I'm
looking possible at SecureQuerryString, any other option? What is
recommended?


Nov 21 '05 #2
If i'm not mistaken the HASH is a 1 way encryption. I will need to be able
to go both ways. Or is this portion a 2 way encryption method?

Thanks

Glenn

"Jay Pondy" wrote:
Check out
System.Web.Security.FormsAuthentication.HashPasswo rdForStoringInConfigFile

On Thu, 17 Mar 2005 06:17:03 -0800, "G Leifheit"
<GL*******@discussions.microsoft.com> wrote:
I'm looking for a way to Encrypt & Decrypt Data in a String Value that can be
placed in a text file. All i'm finding are items that storing the encrypted
value in a text file can be problematic because of special characters. I'm
looking possible at SecureQuerryString, any other option? What is
recommended?


Nov 21 '05 #3
Sorry - you are correct it is one way.

On Thu, 17 Mar 2005 07:25:03 -0800, "G Leifheit"
<GL*******@discussions.microsoft.com> wrote:
If i'm not mistaken the HASH is a 1 way encryption. I will need to be able
to go both ways. Or is this portion a 2 way encryption method?

Thanks

Glenn

"Jay Pondy" wrote:
Check out
System.Web.Security.FormsAuthentication.HashPasswo rdForStoringInConfigFile

On Thu, 17 Mar 2005 06:17:03 -0800, "G Leifheit"
<GL*******@discussions.microsoft.com> wrote:
>I'm looking for a way to Encrypt & Decrypt Data in a String Value that can be
>placed in a text file. All i'm finding are items that storing the encrypted
>value in a text file can be problematic because of special characters. I'm
>looking possible at SecureQuerryString, any other option? What is
>recommended?



Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Piotr | last post by:
MS has published on its sites javascript encoder, which enables "encrypting" javascript code. It allows hiding js code from being seen as a text file. There is a decoder for it, available in the...
4
by: John Young | last post by:
Hi, I have been trying to encrypt and decrypt a filestream. I have a problem where if I encrypt a file a set key and iv (eg. key is 'polomint' and the IV is '12345678'), and then decrypt it with...
0
by: cmrchs | last post by:
Hi, Using the RSA-crypto algorithm in .NET , when actually encrypting/decrypting, all the code samples I ran into always used something like, to encrypt : // create keypair and store in...
3
by: VB Programmer | last post by:
I have my SQL Server connectionstring in my web.config file. I'm scared that someone will open the file and get my username/password. How do I encrypt, then decrypt the connection string in the...
4
by: Andy G | last post by:
If users forget there passwords I want to send a link to them through email so they can click on a link and go to a change password page. eBay does this by sending you a url that looks something...
0
by: cmrchs | last post by:
Hi, Using the RSA-crypto algorithm in .NET , when actually encrypting/decrypting, all the code samples I ran into always used something like, to encrypt : ' create keypair and store in...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
3
by: dfa_geko | last post by:
Hi All, I had a question about encrypting and decrypting XML files using asymmetric keys. I copied some sample code from MSDN, here are the samples: ...
2
by: SeeSharp Bint | last post by:
Visual Studio 2005, dotnet, c#. Microsoft SQL Server. Windows XP forms application. Temporarily, for my database application, I have been storing the various elements of database connection...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.