The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Is BasicFunctions.WebEncrypt() time dependent?
Posted: 15 Oct 08 3:29 PM
|
I'm trying to write an application that will take the user's password, encrypt it, and compare it to the value in Contact.WEBPASSWORD. It seems that when I encrypt the same cleartext multiple times, I get different results. Is this expected?
We want to use the same WEBPASSWORD for multiple web applications. Does anyone have any suggestions? |
|
|
|
Re: Is BasicFunctions.WebEncrypt() time dependent?
Posted: 15 Oct 08 4:30 PM
|
Hi Chris,
Unfortunately that is expected - in the newer implementation of the encryption algoryhtm, each time you run it it will give different results.
However, devrypting should always give you the same result so have you thought of doing it in that direction?
Stephen
|
|
|
|
Re: Is BasicFunctions.WebEncrypt() time dependent?
Posted: 15 Oct 08 5:14 PM
|
Sage SDK support forget to mention that WebEncrypt generates different results over time. In fact, they stated that the login function takes the password input at login, encrypts it and compares to the stored encrypted value.
So, how do you decrypt it? and... Is there a way to do this avoiding COM and a running client application? |
|
|
| |
| |
|
Re: Is BasicFunctions.WebEncrypt() time dependent?
Posted: 15 Oct 08 5:59 PM
|
Hi Mike,
The SLXRWEL object is covered in DevLogix III.7.
In DevLogix V I discuss the use of the newer encryption class in .NET that does the same job - you need to use it to encrypt a user's password for running Crystal Reports from a button on a web form.
Both books cover mutually exclusive content. I you want information on coding for the LAN client then you need III.7. For the new web client you need V.
Regards,
Stephen www.slxmaster.com
|
|
|
|
Re: Is BasicFunctions.WebEncrypt() time dependent?
Posted: 15 Oct 08 6:08 PM
|
I've got the LAN programming covered.
Since we're not talking about users here, but customer portal passwords, does the SLXRWEL object properly encrypt (like Application.Basicfunctions.WebCrypt) and decrypt a customer portal users password. That's what we're discussing here.
I probably will pick up the latest version of the book for the 7.5 web architecture since I haven't been doing that for 11 years. |
|
|
|
Re: Is BasicFunctions.WebEncrypt() time dependent?
Posted: 16 Oct 08 2:20 PM
|
Hi Mike,
Try it out:
Dim x Set x = CreateObject("SLXRWEL.SLXRWEOBJ")
sPwd = x.RemoveKey(pEnc, "***")
I'm not sure that I should post the actualy password that they use here. You might say, "Where's The Catch"? but it is fairly easy to divine it.
Regards,
Stephen
|
|
|
| |
|