I am encrypting my password with BlowfishPasswordHasher in Cakephp 2.X . I don't remember the password, but I can access the database. How can replace the password with by default password like "123"? Without creating an application that does that.
1条回答 默认 最新
- douzhun5971 2017-08-02 02:10关注
Try this from any function within controller:
$password = "123"; $hash = Security::hash($password, 'blowfish'); debug($hash);die();
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 VB.NET操作免驱摄像头
- ¥15 笔记本上移动热点开关状态查询
- ¥85 类鸟群Boids——仿真鸟群避障的相关问题
- ¥15 CFEDEM自带算例错误,如何解决?
- ¥15 有没有会使用flac3d软件的家人
- ¥20 360摄像头无法解绑使用,请教解绑当前账号绑定问题,
- ¥15 docker实践项目
- ¥15 利用pthon计算薄膜结构的光导纳
- ¥15 海康hlss视频流怎么播放
- ¥15 Paddleocr:out of memory error on GPU