CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Anyone can help me Decrypt ?

Print topic Send  topic

Author Message
will2kready

Posts: 5
Posted: 12/17/2004, 1:19 AM

i was getting problem to decrypt an encryption for password.
the function was in ASP, below:

Function PHash( pValue )
Dim dValue
Dim dAccumulator
Dim lTemp
Dim sValue

sValue = UCase(Trim("" & pValue))
dAccumulator = 0

For lTemp = 1 to Len(sValue)
dValue = Asc(Mid(sValue, lTemp, 1))
If (lTemp AND 1) = 1 Then
dAccumulator = Sin( dAccumulator + dValue )
Else
dAccumulator = Cos( dAccumulator + dValue )
End If
Next

dAccumulator = dAccumulator * CLng(10 ^ 9)
PHash = CLng(dAccumulator)

End Function

note:
- pValue is the password entered
- PHash is a function to encrypt the password

anyone can help me decrypt this formula ?i really appreciate !
View profile  Send private message
mrachow


Posts: 509
Posted: 12/17/2004, 1:32 AM

Without looking at any detail.

You should encrypt the passwort.
On later login you should encrypt entered password and compare this to the already stored encrypted password.
This procedure will work for encryptions you can't decrypt too.
_________________
Best regards,
Michael
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.