浏览器的书签手动修改以后如何重新计算校验和?
现在的浏览器的收藏夹都保存在书签文件(bookmark)里,手动添加任何书签需要改变校验值,否则浏览器不显示书签。请问这个校验和的算法谁有,请分享一下。
下面是一个书签文件代码:{
"checksum": "addd5757dab4cd45847ab78d014c56fa",
"roots": {
"bookmark_bar": {
"children": [ {
"date_added": "13124529792138854",
"id": "2",
"name": "百度",
"type": "url",
"url": "https://www.baidu.com/index.php?tn=22073068_2_dg"
} ],
"date_added": "13120495208367584",
"date_modified": "13122379904890797",
"id": "1",
"name": "书签栏",
"type": "folder"
},
"other": {
"children": [],
"date_added": "13120495208367590",
"date_modified": "0",
"id": "8",
"name": "其他书签",
"type": "folder"
},
"synced": {
"children": [],
"date_added": "13120495208367591",
"date_modified": "0",
"id": "9",
"name": "移动设备书签",
"type": "folder"
}
},
"version": 1
} 源码在https://chromium.googlesource.com/chromium/chromium/+/20f8aa123f98b2bcb0d346af0d78ad7a8ddea5d0/chrome/browser/bookmarks/bookmark_codec.cc
很明显,它是用MD5算法 回复 2# ceoguang
ok,研究一下
页:
[1]