maneesh_jain
8th March 2006, 22:23
Does anyone know how to encrypt/decrypt password in a Baan session?
The password should be displayed/stored in encrypted form. We are on 4c2/Unix
Thanks
amolpk
20th March 2006, 12:17
Hi
U may find the command in /baan4c4/bse/bin
just give encrypt6.1 and then password it shows eincrypted script
Amolpk
NPRao
20th March 2006, 19:25
Maneesh,
Here is an example from TG scipts -
string temp(80)
temp = crypt.password$("hello")
if is.password.ok("hello", temp) then
message("Correct Password")
else
message("Incorrect Password")
endif
if is.password.ok("hello1", temp) then
message("Correct Password")
else
message("Incorrect Password")
endif
I didn't find a direct function to decrypt the password. Now, back to the standard Q. Why are you doing it?
sameer.don
24th June 2009, 07:09
does this functuion needs any dll to be linked or file to be included in code?
george7a
24th June 2009, 09:01
No. They are standard functions.
NirajKakodkar
24th June 2009, 09:19
Here is an example from TG scipts -
Code:
string temp(80)
temp = crypt.password$("hello")
if is.password.ok("hello", temp) then
message("Correct Password")
else
message("Incorrect Password")
endif
if is.password.ok("hello1", temp) then
message("Correct Password")
else
message("Incorrect Password")
endif
Is there a similar function for decrypting the password , I tried to search but invain , so finally I had to write my own encryption/decryption algorithm .
Regards,
ulrich.fuchs
10th July 2009, 16:07
If Baan implemented that method correctly, this should be a one way hashing method. So there is no decryption back from the "digest" created with crypt.password$() to the original password. See http://en.wikipedia.org/wiki/Cryptographic_hash_function