datacapsule 1.0.2 copy "datacapsule: ^1.0.2" to clipboard
datacapsule: ^1.0.2 copied to clipboard

A simple string (only) masking algorithm that hides a readable string value inside a data capsule using a generated key.

Data Capsule #

A simple string (only) masking algorithm that hides a readable string value inside a data capsule using a generated key. Generated data capsules will only be opened using the same key that was used to create them.

Setup #

To use this plugin:

Add data capsule in your project's pubspec.yaml

dependencies:
    datacapsule: ^1.0.1

Usage #

See the `example` directory for a complete sample code on using data capsule.

Import it inside your code

import 'package:datacapsule/datacapsule.dart';

Instantiate the data capsule class

DataCapsule _capsule = DataCapsule();

There are 5 methods you can use to pack and unpack data capsules

precription(); // Gets a prescription key. As much as possible, you have to keep this somewhere safe.
pack(String data, String prescription); // Packs a string into a data capsule.
unpack(String data, String prescription); // Unpacks a string into a data capsule.
packList(List<String> data, String prescription); // Packs a list of strings into a data capsule.
unpackList(List<String> data, String prescription); // Unpacks a a list strings into a data capsule.
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A simple string (only) masking algorithm that hides a readable string value inside a data capsule using a generated key.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

More

Packages that depend on datacapsule