ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 31st, 2003, 08:02 PM
JeremyH JeremyH is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 JeremyH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to JeremyH Send a message via Yahoo to JeremyH
Post SHA-1 w/ ASP & VBScript

Hello,

I am trying to use SHA-1 cryptography in an ASP page. I am able to encrypt the password, and store it into the database... All is well... I am also using a nonce .. A.K.A. salt to store the password so that it is secure against dictionary attacks. The user enters a password, followed by a secret phrase. The password is stored in the database as PassHASH, and the secret phrase is stored as the salt. When the user clicks the sign-up button, the PassHASH is then concatenated with the Salt, which is then encrypted again to make up the actual checksum value that is stored in the database as the password. The user is then emailed an activation link. When the user clicks on the link in their inbox, they are taken to an activation script where their information is pulled from a temp table (pending_activations) and is stored into the main table in the database which holds all the clients. The salt, the PassHASH and the actual checksum password is then pulled from the temp table and placed into the main user table, since the user has now been confirmed as an actual user and not URL..... The account is created, the user is automatically logged in, and all goes well... HOWEVER :-) , when the user comes back to log into the web site, they are required to enter the username and password... (of course) ... Now the password is encrypted and converted into an ASCII hash value, where the salt is then pulled from the database and concatenated to the password hash, where they are then encrypted together, to match against the checksum or password in the database. ERROR ..... Access Denied... I put the variables into a response.write statement to see where it may have been going wrong. The password which the user enters, which is converted and stored as PassHASH matches fine against the database... The Salt matches perfect.... However, the final checksum value is wrong. I have tried using the variables in different order such as Encrypt(PassHASH & Salt), or Encrypt(Salt & PassHASH), however nothing seems to work. I am very desperate for an answer, so if anyone has worked with SHA-1 before, or any type of hashing algorithm such as MD4 or MD5, and can lend a hand, it would be greatly appreciated !!!


Thanks ......

Reply With Quote
  #2  
Old August 31st, 2003, 10:22 PM
JeremyH JeremyH is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 JeremyH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to JeremyH Send a message via Yahoo to JeremyH
Thumbs up

i got it... nevermind... It was a problem with one of the tables in MySQL ..... Was only set to allow 50 characters, so I came up 13 short ... duhhhh

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > SHA-1 w/ ASP & VBScript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT