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

Simple cryptography

Hi!

Could someone please point me out in the right direction here.

I have a 32 character long hex-number, and a 11 digit long "key" and want to
create a one-way hash number of a not to extensive length (4 digits would be
perfect).

Is this doable, and where should I start looking (names of algorithms etc.).
I want to use the cryptography classes within .NET.

Thanks in advance!

/ Peter
Nov 2 '06 #1
3 1178
I had a hard time doing a fairly simple cryptographic task (coming from
php, where you just have a simple "string md5(string x)" method). I
don't dare post my code here, because it's probably not at all decent
enough to learn anything from it. However, considering your actual
question:

You should start at System.Security.Cryptography.

Hope that helps, even if only a little.

-Jeroen

Nov 2 '06 #2
theres a simple enough example here

http://csharp.codenewbie.com/article...sh-Page_1.html
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Jeroen" <me******@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
>I had a hard time doing a fairly simple cryptographic task (coming from
php, where you just have a simple "string md5(string x)" method). I
don't dare post my code here, because it's probably not at all decent
enough to learn anything from it. However, considering your actual
question:

You should start at System.Security.Cryptography.

Hope that helps, even if only a little.

-Jeroen

Nov 2 '06 #3
Perfect!

Thanks a lot!
"John Timney (MVP)" <x_****@timney.eclipse.co.ukskrev i meddelandet
news:WM********************@eclipse.net.uk...
theres a simple enough example here

http://csharp.codenewbie.com/article...sh-Page_1.html
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Jeroen" <me******@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
>>I had a hard time doing a fairly simple cryptographic task (coming from
php, where you just have a simple "string md5(string x)" method). I
don't dare post my code here, because it's probably not at all decent
enough to learn anything from it. However, considering your actual
question:

You should start at System.Security.Cryptography.

Hope that helps, even if only a little.

-Jeroen


Nov 2 '06 #4

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

Similar topics

0
by: Andrzej | last post by:
Hi, I have to figure out why we have a problem with special characters in encrypted usernames and passwords. Case: Username: r&bgeorge Password: tigger
14
by: Xarky | last post by:
Hi, I would like to enrypt and decrypt a simple line of text, with a private(symmetric) key. I have tried searching in the System.Cryptography class, but I can't find a simple way of doing this...
0
by: EP | last post by:
I have a WSE server app that uses the <cryptography> element in the configuration (seen below). This worked perfectly in WSE sp1, but when I upgraded to SP2 and then to SP3, I get the following...
1
by: muthu | last post by:
Hi, I have two web applications running on my machine.The application is developed using asp.net 1.1 and vb.net.When i try to run both the applications in the same browsers, i get the following...
1
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
Hi, everybody here. I am implementing data encryption/decryption, and try to use System.Security.Cryptography.TripleDESCryptoServiceProvider. But I can not find it in MS Visual Studio when I...
1
by: Eric Simmons | last post by:
Hello, I am trying to run a .NET 2.0 application that I developed and I am getting the following error: Key not valid for use in specified state I am attempting to retrieve the...
0
by: Amelyan | last post by:
Why does this happen? How to fix it? Once in a while I get error in ~/ScriptResource.axd?d=... System.Reflection.TargetInvocationException: Exception has been thrown by the target of an...
0
by: tutorialwebs | last post by:
Applied cryptography text books http://www.365x24live.com/Applied%20Cryptography/ewtoc.html http://www.365x24live.com/Applied%20Cryptography/ewtoc.html...
1
by: Napcrisis | last post by:
Hi guys i need to know if its possible to use visual c++ and make use of .net cryptography to encrypt files using the cryptography algorithms .net has to offer. cuz i have been searching around and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.