proton_safe_storage

    Native OS-backed safe storage helpers for MoonBit.

    desktop
    safe-storage
    native
    windows
    macos
    Download zip
    Version
    0.2.9
    License
    Apache-2.0
    Last updated
    4 hours ago
    Downloads
    125

    #proton_safe_storage

    OS-backed safe storage for native MoonBit applications. The current backend uses Windows DPAPI and macOS Keychain. Linux reports unsupported until a Secret Service backend is available; no plaintext or software-only fallback is used.

    The module supplies its own macOS Security framework link flags. Maintainers can run node scripts/test_safe_storage_macos.mjs from the repository root to check standalone linking and real CommonCrypto roundtrips with an isolated test key; this test does not access the user's Keychain.

    decrypt_string

    fn decrypt_string(value : String) -> Result[String, String]

    Decrypts a base64 payload produced by encrypt_string.

    encrypt_string

    fn encrypt_string(value : String) -> Result[String, String]

    Encrypts UTF-8 text using the current user's OS-backed secret store.

    is_available

    fn is_available() -> Bool

    Returns whether OS-backed safe storage is available on this target.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io