Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mousumi_mou's avatar

How Can Show the encrypted password in my view page as decrypted value?

I have generated multiple numbers of password for students. And I have kept those in database as studentPassword. Now want to view the encrypted password list in my view page table as decrypted value. Suppose, in the database table there is a password 123456. But it's in encrypted formation. So how can I show the Decrypted value 123456 in my view page table row?

0 likes
2 replies
martinbean's avatar

@mousumi_mou You should never display a password in plain text. If you do, it should be consider compromised.

Passwords should also be hashed rather than encrypted. You should never be able to reverse a password. If you can reverse a password, so can a nefarious user who gains unauthorised access to your application or database.

Please have a read up on basic security principles in regards to application development.

1 like

Please or to participate in this conversation.