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

encryption in .NET 2.0

Hello,

I need to encrypt and decrypt a string in .NET Framwork 2.0.

What is the easiest way to do it?

I know that there are many different ways to use encryption in .NET,
some more complex than others. All I need is to hide from an end-user
some clear-text settings -- nothing super secretive.

The reliability of the encryption routine and the easy of development
are the primary goals.

Thank you for your advice.

Evgueni

Aug 31 '06 #1
5 3848
Eugenet,

I see that you have these goals.
The reliability of the encryption routine and the easy of development
are the primary goals.
What do you think other people want?

However here the starting links of the encrypting methods in Net

http://msdn.microsoft.com/library/de...classtopic.asp

:-)

Cor
<eu*****@rusmex.comschreef in bericht
news:11*********************@p79g2000cwp.googlegro ups.com...
Hello,

I need to encrypt and decrypt a string in .NET Framwork 2.0.

What is the easiest way to do it?

I know that there are many different ways to use encryption in .NET,
some more complex than others. All I need is to hide from an end-user
some clear-text settings -- nothing super secretive.

The reliability of the encryption routine and the easy of development
are the primary goals.

Thank you for your advice.

Evgueni

Aug 31 '06 #2
Evgueni,
I need to encrypt and decrypt a string in .NET Framwork 2.0.

What is the easiest way to do it?
As you say it's nothing super secretive, so I'm assuming that you just
need to encrypt something so the average user doesn't mess about with it.

If that is the case, a simple base64 encoding and decoding method would
do the job.

Regards,

Richard
--
Google First. Ask Later
Aug 31 '06 #3

<eu*****@rusmex.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
Hello,

I need to encrypt and decrypt a string in .NET Framwork 2.0.

What is the easiest way to do it?

I know that there are many different ways to use encryption in .NET,
some more complex than others. All I need is to hide from an end-user
some clear-text settings -- nothing super secretive.

The reliability of the encryption routine and the easy of development
are the primary goals.

Thank you for your advice.

Evgueni
If you need to hash something, I'd use System.Security.Cryptography.MD5 or
another class from the Cryptography. Heck, if I needed to do anything
cryptographically, I'd use the System.Security.Cryptography namespace :)

Mythran
Aug 31 '06 #4
Thank you for your posts. For my purposes, base64 encoding is the way
to go.

Mythran wrote:
<eu*****@rusmex.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
Hello,

I need to encrypt and decrypt a string in .NET Framwork 2.0.

What is the easiest way to do it?

I know that there are many different ways to use encryption in .NET,
some more complex than others. All I need is to hide from an end-user
some clear-text settings -- nothing super secretive.

The reliability of the encryption routine and the easy of development
are the primary goals.

Thank you for your advice.

Evgueni

If you need to hash something, I'd use System.Security.Cryptography.MD5 or
another class from the Cryptography. Heck, if I needed to do anything
cryptographically, I'd use the System.Security.Cryptography namespace :)

Mythran
Aug 31 '06 #5
if you want to do something reallyreallysimple, use an XOR algorithm.

You only need one method, it will XOR each character against a known value
(from 0 to 255 for ASCII) and spit out an xor-ed string that is the same
length as the original. To Decrypt it, send the xor-ed string back into the
same method. You can do all this in about 5 lines of code.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"eu*****@rusmex.com" wrote:
Hello,

I need to encrypt and decrypt a string in .NET Framwork 2.0.

What is the easiest way to do it?

I know that there are many different ways to use encryption in .NET,
some more complex than others. All I need is to hide from an end-user
some clear-text settings -- nothing super secretive.

The reliability of the encryption routine and the easy of development
are the primary goals.

Thank you for your advice.

Evgueni

Aug 31 '06 #6

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

Similar topics

1
by: Cliff | last post by:
We are trying to connect to 3 different Oracle databases using MS Access as the front-end and ODBC as the connection. The problem that we are having is that 1 of the databases requires a...
113
by: Bonj | last post by:
I was in need of an encryption algorithm to the following requirements: 1) Must be capable of encrypting strings to a byte array, and decyrpting back again to the same string 2) Must have the same...
7
by: Alan Silver | last post by:
Hello, I am writing a page where sensitive data is collected (over SSL) and stored in a database. I have been looking at the .NET encryption classes, but am a bit confused as to which is best...
2
by: Sumit Gupta | last post by:
Can anyone please tell me how to encrpt string or any kind of Data. Also the Algorithm of Compression. Any Link tutorial etc. Like : Zip or RAR Formats etc.
9
by: sweety | last post by:
Dear All, How to encrypt a C data file and make binary file and then have to read a bin file at run time and decrypt the file and have to read the data. Any help to achive this pls. Would be...
4
by: pintu | last post by:
Hello everybody.. I hav some confusion regarding asymmetric encryption.As asymmetric encryption it there is one private key and one public key.So any data is encrypted using private key and the...
1
by: =?Utf-8?B?bWljcm9ob2Y=?= | last post by:
Short version: Is there a way to configure (preferably programmatically) the max encryption strength that will be used by the framework when connecting to a particular SSL-protected web service? ...
11
by: John Williams | last post by:
I've written a simple program to do XOR encryption as my first foray into understanding how encryption works. The code compiles fine, however it segmentation faults on every run. using gdb to...
22
by: j1mb0jay | last post by:
I have had to create a simple string encryption program for coursework, I have completed the task and now have to do a write up on how it could be improved at a later date. If you could look...
19
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.