sidekick_vault 0.8.0 copy "sidekick_vault: ^0.8.0" to clipboard
sidekick_vault: ^0.8.0 copied to clipboard

Reads project secrets stored encrypted on the local filesystem

example/example.dart

import 'package:sidekick_core/sidekick_core.dart';
import 'package:sidekick_vault/sidekick_vault.dart';

void main() {
  final vault = SidekickVault(
    location: repository.root.directory('vault'),
    // environment variable where CIs can inject the vault password
    environmentVariableName: 'FLT_VAULT_PASSPHRASE',
  );

// define encrypted files in vault
  final EncryptedVaultString encrypted = vault.encryptedString('secret.txt');
// access the text prompts the passsword
  print(encrypted.text);

  // directly decrypt (prompts password immediately)
  final secret = vault.loadText('secret.txt');
  print(secret);
}
5
likes
0
pub points
49%
popularity

Publisher

verified publisherphntm.xyz

Reads project secrets stored encrypted on the local filesystem

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

actions_toolkit_dart, dcli, sidekick_core

More

Packages that depend on sidekick_vault