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

Encrypt values from `.secure_env` into Rust ciphertext at build time and read them at runtime via `dart:ffi` (AES-256-GCM). Keeps plaintext secrets out of Dart sources and JNI / Apple native binaries [...]

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate secure_env

Use it

The package has the following executables:

$ generate

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add secure_env

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  secure_env: ^1.0.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:secure_env/secure_env.dart';
2
likes
140
points
71
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Encrypt values from `.secure_env` into Rust ciphertext at build time and read them at runtime via `dart:ffi` (AES-256-GCM). Keeps plaintext secrets out of Dart sources and JNI / Apple native binaries shipped with your app.

Repository (GitHub)
View/report issues

Topics

#security #secrets #encryption #ffi #environment

License

MIT (license)

Dependencies

args, crypto, cryptography, ffi, flutter

More

Packages that depend on secure_env

Packages that implement secure_env