🎨 支持通过密码短语派生数据仓库密钥 https://github.com/siyuan-note/siyuan/issues/5478
This commit is contained in:
parent
8e56e1f47f
commit
802ed4f0b6
3 changed files with 500 additions and 94 deletions
|
@ -4,7 +4,7 @@
|
|||
"Properties": {
|
||||
"id": "20210615213222-vs5tzbd",
|
||||
"title": "Data history",
|
||||
"updated": "20220716174508"
|
||||
"updated": "20220722002630"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -1364,56 +1364,189 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220716174347-vpsct46",
|
||||
"ID": "20220722002536-t7qdekm",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220716174347-vpsct46",
|
||||
"updated": "20220716174508"
|
||||
"id": "20220722002536-t7qdekm",
|
||||
"updated": "20220722002536"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "If you have multiple devices, you only need to "
|
||||
},
|
||||
"Data": "There are three ways to initialize the key:"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220722002536-oh6do47",
|
||||
"Type": "NodeList",
|
||||
"ListData": {},
|
||||
"Properties": {
|
||||
"id": "20220722002536-oh6do47",
|
||||
"updated": "20220722002630"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"ID": "20220722002536-jl5euiu",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220722002536-jl5euiu",
|
||||
"updated": "20220722002536"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Generate key"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
"ID": "20220722002536-6v0g14u",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722002536-6v0g14u",
|
||||
"updated": "20220722002536"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Import Key"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ": Copy the key string from another device to this paste and import"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " on one of the devices, and then copy the key string to other devices by "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"ID": "20220722002536-vtknbv8",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220722002536-vtknbv8",
|
||||
"updated": "20220722002630"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Import key"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
"ID": "20220722002536-ebch8kx",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722002536-ebch8kx",
|
||||
"updated": "20220722002630"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Auto-generate key"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ": Use random text to generate the key, this method only needs to be executed once on one device, and other devices use "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Import key"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220722002536-gwbslbg",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220722002536-gwbslbg",
|
||||
"updated": "20220722002536"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220722002536-iywk7i9",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722002536-iywk7i9",
|
||||
"updated": "20220722002536"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Generate key by passphrase"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ": Use a custom passphrase to generate the key, which requires the same passphrase on all devices"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220722002536-k5ij0q6",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722002536-k5ij0q6",
|
||||
"updated": "20220722002536"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " import. Do not initialize keys repeatedly on multiple devices, otherwise data snapshots will not be available across devices, for example, data snapshots cannot be synchronized through the cloud."
|
||||
"Data": "All in all, it is important to ensure that all devices use the same key, otherwise data snapshots will not be available across devices, such as syncing data snapshots through the cloud."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"Properties": {
|
||||
"id": "20210615211733-v6rzowm",
|
||||
"title": "数据历史",
|
||||
"updated": "20220716174244"
|
||||
"updated": "20220722002029"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -1319,7 +1319,15 @@
|
|||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "第一次使用数据快照前需要在 "
|
||||
"Data": "第一次使用"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "数据快照"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "前需要在 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
|
@ -1384,56 +1392,188 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220615113953-4o3uc9z",
|
||||
"ID": "20220722001510-mtrrbj0",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220615113953-4o3uc9z",
|
||||
"updated": "20220716174244"
|
||||
"id": "20220722001510-mtrrbj0",
|
||||
"updated": "20220722001555"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "如果你有多台设备,仅需在其中一台设备上 "
|
||||
},
|
||||
"Data": "初始化密钥有三种方式:"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220722001555-3wcanjb",
|
||||
"Type": "NodeList",
|
||||
"ListData": {},
|
||||
"Properties": {
|
||||
"id": "20220722001555-3wcanjb",
|
||||
"updated": "20220722001917"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"ID": "20220722001556-sjm48yn",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220722001556-sjm48yn",
|
||||
"updated": "20220722001556"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "生成密钥"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
"ID": "20220722001556-8sc4mqb",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722001556-8sc4mqb",
|
||||
"updated": "20220722001656"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "导入密钥"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":将其他设备上的密钥字符串复制到此粘贴导入"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ",然后拷贝该密钥字符串到其他设备上,通过 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"ID": "20220722001657-79plg0z",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220722001657-79plg0z"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "导入密钥"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
"ID": "20220722001657-gh22p4n",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722001657-gh22p4n",
|
||||
"updated": "20220722001831"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "自动生成密钥"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":使用随机数生成密钥,该方式只需在一台设备上执行一次,其他设备使用 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "导入密钥"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220722001834-8kc1pdr",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220722001834-8kc1pdr",
|
||||
"updated": "20220722001917"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220722001834-13o5rzz",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722001834-13o5rzz",
|
||||
"updated": "20220722001917"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "通过密码生成密钥"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":使用自定义的密码短语生成密钥,该方式需要在所有设备上都使用相同的密码短语"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220615113953-4o3uc9z",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220615113953-4o3uc9z",
|
||||
"updated": "20220722002029"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 进行导入。切勿在多台设备上重复初始化密钥,否则数据快照将无法跨设备使用,比如无法通过云端同步数据快照。"
|
||||
"Data": "总而言之,请务必保证所有设备都使用相同的密钥,否则数据快照将无法跨设备使用,比如无法通过云端同步数据快照。"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"Properties": {
|
||||
"id": "20211226122707-8cr09co",
|
||||
"title": "數據歷史",
|
||||
"updated": "20220716174547"
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
@ -1364,56 +1364,189 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220716174547-35l2lc3",
|
||||
"ID": "20220722002508-sd5vbbt",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220716174547-35l2lc3",
|
||||
"updated": "20220716174547"
|
||||
"id": "20220722002508-sd5vbbt",
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "如果你有多台設備,僅需在其中一台設備上 "
|
||||
},
|
||||
"Data": "初始化密鑰有三種方式:"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220722002508-jixu469",
|
||||
"Type": "NodeList",
|
||||
"ListData": {},
|
||||
"Properties": {
|
||||
"id": "20220722002508-jixu469",
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"ID": "20220722002508-bxfg13s",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220722002508-bxfg13s",
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "生成密鑰"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
"ID": "20220722002508-q7wnooz",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722002508-q7wnooz",
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "導入密鑰"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":將其他設備上的密鑰字符串複製到此粘貼導入"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ",然後拷貝該密鑰字符串到其他設備上,通過 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"ID": "20220722002508-rfta23n",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220722002508-rfta23n",
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "導入密鑰"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
"ID": "20220722002508-jlajl9s",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722002508-jlajl9s",
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "自動生成密鑰"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":使用隨機數生成密鑰,該方式只需在一台設備上執行一次,其他設備使用 "
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "導入密鑰"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220722002508-p6exuz0",
|
||||
"Type": "NodeListItem",
|
||||
"ListData": {
|
||||
"BulletChar": 42,
|
||||
"Marker": "Kg=="
|
||||
},
|
||||
"Properties": {
|
||||
"id": "20220722002508-p6exuz0",
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"ID": "20220722002508-8pmkbbh",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722002508-8pmkbbh",
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbd",
|
||||
"Data": "kbd",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeKbdOpenMarker"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "通過密碼生成密鑰"
|
||||
},
|
||||
{
|
||||
"Type": "NodeKbdCloseMarker"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": ":使用自定義的密碼短語生成密鑰,該方式需要在所有設備上都使用相同的密碼短語"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ID": "20220722002508-6e1thfk",
|
||||
"Type": "NodeParagraph",
|
||||
"Properties": {
|
||||
"id": "20220722002508-6e1thfk",
|
||||
"updated": "20220722002508"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " 進行導入。切勿在多台設備上重複初始化密鑰,否則數據快照將無法跨設備使用,比如無法通過雲端同步數據快照。"
|
||||
"Data": "總而言之,請務必保證所有設備都使用相同的密鑰,否則數據快照將無法跨設備使用,比如無法通過雲端同步數據快照。"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue