206
Views
7
Comments
How can I Decrypt password if I have a Custom user table.
Application Type
Reactive

I have custom user entity which contain username and password.

I encrypt password through Encrypt Password server action but how can I decrypt that password.

2023-01-26 16-03-24
Ana Agostinho

Hello Pawan Kumar Parmar,

Basically, it is not wise to decrypt passwords. It is simple and a better approach to reset it, because once you hash a password reversing is almost mathematically impossible by design. This is valid not only for OS, but for the remain technologies. 


However, you can validate it using this default Outsystems server action.

Hope this might help.
Ana

2024-12-10 04-40-04
Gitansh Anand

Hi @Pawan Kumar Parmar, Why do you want to decrypt a password?

If you want to verify a password, instead of decrypting the user's password present in the database, you should encrypt the new value used for password and match that with the value present in the database.

Thanks
Gitansh Anand

2023-10-21 19-42-11
Tousif Khan
Champion

Hi
So you are not using the Outsystems Default User Entity right

May I know which encryption you are using

You can use Validate password action from the dependencies, it will ask for the password encrypted one which is stored in the database, and plain text you have to pass the normal password, it will not decrypt the password but it will return whether the password in your database which is encrypted is same as the password you have entered.

But if you are looking for encryption and decryption then check this component.
https://www.outsystems.com/forge/component-overview/437/cryptoapi
Make sure the way you encrypt the password the same way you can decrypt it, I mean you must know which encryption you are doing example SHA, H2a

I hope this helps

Best Regards
Tousif Khan

2023-09-07 20-35-56
Pawan Parmar

I use Users EncryptPassword server Action

2023-10-21 19-42-11
Tousif Khan
Champion

Then use validate the password, Server action to validate password.

2020-12-30 08-58-13
Hillman
Staff

Hi Pawan,


If you follow the same way of how Outsystems is protecting the password entity, this is actually done through a hashing process which is inrevertible. If you would like to compare the password and see if the user is entering the correct one, the right way to do so is to also perform the encrypt password action on the entered text, and be comparing the 2 and see if they match. In this way, you can proceed without decrypting.


Cheers,

Hillman

UserImage.jpg
Nani

No, you con't Decrypt password But you can encrypt password and compare with user table password

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.