各平台的系统安全存储
SecureStorage- macOS
- 登录钥匙串(login keychain,ADR-0008)。
- iOS
- 钥匙串,访问级别为「仅本设备、解锁后可读」,不随 iCloud 钥匙串同步到别的设备。
- Windows
- DPAPI,按当前 Windows 用户加密。
- Android
- 数据用 AES-GCM 加密,这把密钥再由 Android Keystore 里的 RSA 密钥包裹。
- Linux
- libsecret(Secret Service,常见的是 GNOME 钥匙环)。