revault_api 0.2.0
revault_api: ^0.2.0 copied to clipboard
Typed Dart FFI bindings for encrypted reVault lockboxes, credentials, keys, form records, and local vault metadata on Linux, macOS, and Windows.
reVault for Dart #
reVault is an encrypted archive and local-vault library for files, credentials, keys, and typed records. The Dart package provides an owned, class-based API and documented Dart domain values with no code-generation types in the public API. See the reVault documentation.
dependencies:
revault_api: ^0.2.0
final vault = await Vault.load();
final box = vault.createLockbox(Uint8List(32)); // load a real key securely
box.addFile(
'/hello.txt',
Uint8List.fromList('hello\n'.codeUnits),
replace: false,
);
box.setVariable('owner', 'alice');
box.setSecretVariable('token', Uint8List.fromList('secret'.codeUnits));
box.withSecretVariable('token', (token) => token.length);
box.commit();
box.dispose();
Packaged runtimes support Linux, macOS, and Windows on x86-64 and ARM64.
REVAULT_LIBRARY is a development-only override for native discovery.