CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 8/15/2003 10:57:20 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
mtullock
Asp.Net User
RSA Cryptology problem8/15/2003 10:57:20 AM

0/0

Hi, I have the following encryption code:


Dim encryptedKey As String = nothing
<WebMethod()> Public Function Encrypt(ByVal password As String) As String
Dim bEncryptedData() As Byte
Dim rsaCSP As RSACryptoServiceProvider
Dim bInput() As Byte
Dim paramCSP As CspParameters
paramCSP = New CspParameters()

paramCSP.Flags = CspProviderFlags.UseMachineKeyStore
rsaCSP = New RSACryptoServiceProvider(paramCSP)

bInput = (New System.Text.UnicodeEncoding()).GetBytes(password)

encryptionKey = rsaCSP.ToXmlString(True)

bEncryptedData = rsaCSP.Encrypt(bInput, False)
Encrypt = (New System.Text.UnicodeEncoding()).GetString(bEncryptedData).ToString()
End Function


This works great, it generates a key and the pwd which I can then store in our DB, however, what I want to do now is use the existing key from the DB to encrypt another PWD to see if they match -- any idea how I can get the above code to use the encryptedKey string as teh encryption key??? ( I realise there are other password encryption methods but I have been playing with this one for too ling to give up now :) )

Cheers
Magnus
tmw06
Asp.Net User
Re: RSA Cryptology problem8/17/2003 8:30:19 PM

0/0

Instead of encrypting with keys I would suggest doing a one-way hash using MD5.Create("somepassword"). Store the hashed value in your database. When a user logs on, take the password they entered and has that password and compare it to the hashed value in the database.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Topics in Cryptology--CT-RSA 2004: The Cryptographers' Track at the RSA Conference 2004, San Francisco, CA, USA, February 23-27, 2004 : Proceedings Authors: Tatsuaki Okamoto, Pages: 386, Published: 2004
Topics in Cryptology, CT-RSA 2002: The Cryptographers' Track at RSA Conference 2002, San Jose, CA, USA, February 18-22, 2002 : Proceedings Authors: Bart Preneel, Pages: 309, Published: 2002
Topics in Cryptology, CT-RSA 2001: The Cryptographers' Track at RSA Conference 2001, San Francisco, CA, USA, April 2001 : Proceedings Authors: David Naccache, Pages: 471, Published: 2001
Advances in Cryptology-ASIACRYPT 2002: 8th International Conference on the Theory and Application of Cryptology and Information Security, Queenstown, New Zealand, December 1-5, 2002 : Proceedings Authors: Yuliang Zheng, Pages: 578, Published: 2002
Topics in Cryptology--CT-RSA 2005: The Cryptographers' Track at the RSA Conference 2005, San Francisco, CA, USA, February 14-18, 2005 : Proceedings Authors: Alfred J. Menezes, Pages: 383, Published: 2005
Advances in Cryptology - CRYPTO 2002: 22nd Annual International Cryptology Conference, Santa Barbara, California, USA, August 18-22, 2002 ; Proceedings Authors: Moti Yung, Pages: 626, Published: 2002
Contemporary Cryptology Authors: Dario Catalano, Pages: 237, Published: 2005
Cryptology and Computational Number Theory: American Mathematical Society Short Course, August 6-7, 1989, Boulder, Colorado Authors: Carl Pomerance, Shafi Goldwasser, Pages: 171, Published: 1990
Advances in Cryptology-ASIACRYPT 2003: 9th International Conference on the Theory and Application of Cryptology and Information Security, Taipei, Taiwan, November 30-December 4, 2003 : Proceedings Authors: Chi Sung Laih, Pages: 542, Published: 2003
Advances in Cryptology - EUROCRYPT '98: International Conference on the Theory and Application of Cryptographic Techniques, Espoo, Finland, May 31-June 4, 1998, Proceedings Authors: Kaisa Nyberg, Pages: 606, Published: 1998

Web:
Cryptology Knapsack Problem Rivest-Shamir-Adleman (RSA) Algorithm ... The science of cryptology is the science of secure communications, formed from the Greek words ...
RSA Cryptology problem - ASP.NET Forums RSA Cryptology problem. Last post 08-17-2003 4:32 PM by tmw06. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
What is RSA? What is RSA? ... The RSA algorithm is named after it's three creators: Ron Rivest, ... Purchase these excellent books on cryptology at Amazon.com ...
Amazon.com: Topics in Cryptology - CT-RSA 2001: The ... Start reading Topics in Cryptology - CT-RSA 2001 on your Kindle in under a minute. ... number theoretic problems; passwords and credentials; and protocols. ...
CS 290: Cryptology: RSA-AES Hybrid CSC 290: Cryptology: RSA-AES Hybrid. ---. Diagram of the AES Algorithm. ---. The problem of distinguishing prime numbers from composite numbers and of ...
Topics in Cryptology - CT-RSA 2002 Topics in Cryptology - CT-RSA 2002 - This book constitutes the refereed proceedings of the Cryptographer's Track at the RSA Conference 2002, CT-RSA 2002 , ...
DEAF SUCCEED: DEAF SUCCEED: RSA Cryptology DEAF SUCCEED: RSA Cryptology without frames.
Attacks on RSA The Rabin Cryptosystem Semantic Security of RSA ... Semantic Security of RSA. Cryptology, Tuesday, February 27th, 2007. Nils Andersen ... A problem hierarchy. RSA-problem is no harder than FACTORING: ...
cryptology :: Two-key cryptography -- Britannica Online Encyclopedia Since they were focused on the key distribution problem, Diffie and Hellman ... Cryptography » Key cryptosystems » Two-key cryptography » RSA encryption ...
Cryptology and Information Security Group International School on Mathematical Cryptology and Research Seminar on ... Using LLL-Reduction f or Solving RSA and Factorization Problems: A survey ...

Videos:
RSA Encryption and Decryption : DigInfo DigInfo - http://movie.diginfo.tv Cryptology has grown from the simple to the increasingly complex but it's main function still remains the same- to...




Search This Site:










domain sniff

node of treeview selected by default

content place holder

mysterious appearance of textbox background color

how to find out what caused postback

urgent help:applicationblocks

solpartmenu custom root level in dnn 3.2

validating a check box

how to add a swf animation on to asp.net page??

.net websites/blogs

rad editor removes absolute image paths

uninstallation help... need solution asap pleease

xslt - how do templates create an implicit conditional

the server tag is not well formed - dropdownlist in datagrid

prevent malformed header? authenticated user impersonating someone else?

can't locate ascx.vb files in solution explorer

bugs and feature requests

rearranging a string

downloading multiple files via listbox

export to excel

more on custom profile provider

solpartmenu parent tabs not displaying correctly

creating a new session

determining if a file is in use

if then logic problem

user.ascx page load fails

can't debug my program

impersonate & logon

oliver hine weather.com feed for dotnetnuke

site map module

 
All Times Are GMT