473,385 Members | 1,324 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,385 software developers and data experts.

Encrypt String

Hi Group, How can I encrypt a string in .NET, using .NET References.

thanks a lot.

Genaro
Feb 6 '06 #1
5 1256
There are many ways to encrypt strings in .NET, most of them residing in the
System.Security.Cryptography namespace.

Here's a good starting point:
http://SteveOrr.net/faq/encrypt.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Genaro Sanchez" <gs******@controlsnow.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
Hi Group, How can I encrypt a string in .NET, using .NET References.

thanks a lot.

Genaro

Feb 6 '06 #2
Not sure what you mean by ".net references". Strings cannot be encrypted
but rather you convert the strings to byte arrays and encrypt the bytes.

How much information are you looking for because you should be able to find
lots of tutorials on encryption by searching google.

You can also take a look at the System.Security.Cryptography namespace.

"Genaro Sanchez" <gs******@controlsnow.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
Hi Group, How can I encrypt a string in .NET, using .NET References.

thanks a lot.

Genaro

Feb 6 '06 #3
Thanks for the help.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eM*************@TK2MSFTNGP15.phx.gbl...
There are many ways to encrypt strings in .NET, most of them residing in
the System.Security.Cryptography namespace.

Here's a good starting point:
http://SteveOrr.net/faq/encrypt.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Genaro Sanchez" <gs******@controlsnow.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
Hi Group, How can I encrypt a string in .NET, using .NET References.

thanks a lot.

Genaro


Feb 6 '06 #4
Thanks
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl...
Not sure what you mean by ".net references". Strings cannot be encrypted
but rather you convert the strings to byte arrays and encrypt the bytes.

How much information are you looking for because you should be able to
find lots of tutorials on encryption by searching google.

You can also take a look at the System.Security.Cryptography namespace.

"Genaro Sanchez" <gs******@controlsnow.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
Hi Group, How can I encrypt a string in .NET, using .NET References.

thanks a lot.

Genaro


Feb 6 '06 #5
Check out this 5-part article :
http://www.dotnetbips.com/articles/d...le.aspx?id=297

Also, check out the Cryptography Application Block :
http://msdn.microsoft.com/library/de...ml/crypto1.asp

This 4guysfromrolla article might be of interest :
http://www.4guysfromrolla.com/webtech/090501-1.shtml


Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
"Genaro Sanchez" <gs******@controlsnow.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
Hi Group, How can I encrypt a string in .NET, using .NET References.

thanks a lot.

Genaro

Feb 6 '06 #6

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

Similar topics

1
by: wqhdebian | last post by:
As far as I know,when encrypt or decrypt ,a key must first be got,and the key is first generate by a tool or from SecurityRandom,that means I can not generate the same key with the same input.Does...
8
by: toupeira23 | last post by:
Hello, I'm trying to encrypt passwords in my app. After discovering that there's no simple function to do this, I wrote a wrapper class which decodes a string using UTF8, encrypts it with...
2
by: fineman | last post by:
Hi all, I want to get a 64bit(8 bytes) Encrypt result use DES class in the VS2005. Though I encrypt data is 64bit(8 bytes), but DES return encrypt result that always is 128bit(16 bytes), I don't...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
0
by: lildiapaz | last post by:
Hi, everyone I'm developing a c# windows application that allows the user to encrypt any file type. i would like to encrypt the file using a powerful encrypting algorithm. I've tried to use the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.