OS-backed safe storage for native MoonBit applications. The current backenduses Windows DPAPI and macOS Keychain. Linux reports unsupported until aSecret Service backend is available; no plaintext or software-only fallback isused.
The module supplies its own macOS Security and CoreFoundation framework link flags. Maintainerscan run node scripts/test_safe_storage_macos.mjs from the repository root tocheck standalone linking and real CommonCrypto roundtrips with an isolated testkey; this test does not access the user's Keychain.
The extension surface mirrors Electron's safeStorage core methods:isAvailable, encryptString, and decryptString. Decryption rejects invalidUTF-8 rather than replacing bytes. Linux remains unavailable until a SecretService backend is implemented; no plaintext fallback is provided.