Two-way encryption: I need to store passwords that can be retrieved

前端 未结 8 1153
滥情空心
滥情空心 2020-11-22 08:42

I am creating an application that will store passwords, which the user can retrieve and see. The passwords are for a hardware device, so checking against hashes are out of

8条回答
  •  情深已故
    2020-11-22 09:48

    Use password_hash and password_verify

     12,
    ];
    echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n";
    ?>
    

    And to decrypt:

    
    

提交回复
热议问题