If you cannot decrypt and want to show the value, use this method.
Example: you create a registration form with an encrypted password and want to show the password to the user after entering your panel.
then create two columns for one column for encrypted_password and one for not_encrypted_password,
$not_encrypted_password="password"; $encrypted_password =sha1("password"); $sql = mysqli_query($conn,"INSERT INTO user (not_encrypted_password,encrypted_password)VALUES('$not_encrypted_password','$encrypted_password')");
this way you can use login for the encrypted_password column and show the password in the control panel for the user to use the not_encrypted_password column.
source share