Skip to content

[Report]: 支持webdev同步 #140

Description

@br3ant

Affected Platform

macOS

Report Type

Question

App Version

v1.52

Description

为了保护数据隐私,期望增加挂载webdev的方式同步数据

Activity

  1. debugtheworldbot commented on Sep 2, 2026

    @debugtheworldbot
    Owner

    KeyStats 已经有端到端加密的多设备同步,设计目标就是你提到的数据隐私,所以目前不打算再做 WebDAV 同步。
    具体是:

    • 默认数据只在本机;只有主动开启「设备同步」后才会上传
    • 按键次数、各按键/组合键累计、鼠标点击次数、设备名称等,都会在本机用 AES-256-GCM 加密后再上传
    • 服务端只存密文,读不到日期、键位或统计数值,也拿不到恢复码
    • 鼠标移动距离、滚动距离、分应用统计目前不同步;输入内容和按键顺序本来就不会记录

    用法:设置 → 设备同步 → 创建同步组,把恢复码保存好,再在另一台设备上配对即可。详情可以点同步面板里的「如何使用设备同步」。

    上传的json在 R2 里长这样:

    {
      "schemaVersion": 1,
      "records": [
        {
          "schemaVersion": 1,
          "recordId": "ccfdaHE1RDYR4N9b18rMGf7UTY4IeBdKwVruHwFteRo",
          "deviceId": "3a84ab7c-d1d6-4bfa-b14a-979ad502e377",
          "revision": 1,
          "nonce": "tlHSqwQvgKNr3zU4",
          "ciphertext": "IPWKohdCrCasl2tLk0DCxySeCcQNYrOwQXL/HOXO1X04uroLNdXjSZSV7crhU++JRY2nKFMTLF7usKWnhTaEDdPjd/LZhztrAPo4g9Mp+aqLlvy8B1ORtkPsJpgmktHT5aqqFJBHJYo1UaIjgMo0bd5zHppM0/5eq+FVH8Jt2l7Lm/TmoKTvalCBofVDZRW6que5etxUlyDOYIQxztIqs0QvmVk5IF7xiUUcUiwAFACHxhxpozZU3DXVG5sDQq8i5M6DBTkmnWrffMehDzf46+TC+A==",
          "tag": "QN7ftLPxCh1LAm207zMpJA==",
          "ciphertextHash": "--vl4h9joQt041i1QKrtB5I52oqRci-gXOQSkvMI2LQ"
        }
      ]
    }
    

    能看到的只有 recordId / deviceId / revision 和 AES-256-GCM 的 nonce、ciphertext、tag。日期、键名、次数都在 ciphertext 里,没有恢复码解不开。

    具体的代码在这里
    协议:https://github.com/debugtheworldbot/keyStats/tree/main/contracts/sync/v1
    服务端:https://github.com/debugtheworldbot/keyStats/tree/main/services/sync-worker

  2. br3ant commented on Sep 9, 2026

    @br3ant
    Author

    了解

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    macOSquestionFurther information is requested

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions