首页 > 编程知识 正文

为什么手机密码不能取消,隐私应用加密密码忘记

时间:2023-05-06 15:09:58 阅读:109719 作者:3301

满意的回答

Joywhenny

2016.04.17

合格率: 53%等级: 9

帮助: 5216人

参见Android Forensics May 27

加密的方法如下。 盐值位于/data/data/com.Android.providers.settings/databases/settings.db数据库secure中。 在你的文件中可以看到的是sha1MD5:(40位32位(的值public byte [ ] passwordtohash (string password ) (if ) password==null ) { return } String algo=null; byte[] hashed=null; try { byte [ ] salted password=(passwordgetsalt () ).getBytes; byte [ ] sha1=message digest.getinstance (algo=' sha-1 ' ).digest ) saltedpassword; byte [ ] MD5=message digest.getinstance (algo=' MD5 ' ).digest (salted password ); hashed=(tohex ) sha1 ) tohex ) MD5 ) ).getBytes ); } catch (nosuchalgorithmexceptione ) log.w ) tag,' failedtoencodestringbecauseofmissingalgorithm 3360 ' algo; } return hashed; } pulloutthesaltusingadb.saltisstoredinthe‘secure’table from/data/com.Android.providers.settings/databa base se Sese

ex :0 c4c 24508 f0d 29 cf 54 ff C4 DBC 5520 c 3c 10496 f 43313 B4 D3 addff8c8 DC 3c a69 ce 740 onceyouhavethemd5ondthesaltyoucanbruteforceusing avavarceusing

00共享通报

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。