envault 1.0.0 copy "envault: ^1.0.0" to clipboard
envault: ^1.0.0 copied to clipboard

Fintech-grade secret management for Flutter/Dart. AES-256-GCM encryption in generated code, SecureString type, build-time validation, and runtime derived keys.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'vault.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: FutureBuilder<int>(
            // .use() is now async to support non-blocking decryption
            future: Vault.apiKey.use((v) => v.length),
            builder: (context, snapshot) {
              if (snapshot.connectionState == ConnectionState.waiting) {
                return const CircularProgressIndicator();
              }
              if (snapshot.hasError) {
                return Text('Decryption Error: \${snapshot.error}');
              }
              return Text('envault example app. Key length: \${snapshot.data}');
            },
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
289
downloads

Documentation

API reference

Publisher

verified publishergunjan.tech

Weekly Downloads

Fintech-grade secret management for Flutter/Dart. AES-256-GCM encryption in generated code, SecureString type, build-time validation, and runtime derived keys.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

cryptography, cryptography_flutter, meta

More

Packages that depend on envault