lokdon_sdk 1.0.0
lokdon_sdk: ^1.0.0 copied to clipboard
Lokdon Dart SDK
Lokdon Encryption and Decryption Package #
Dart plugin for Lokdon SDK
Getting Started #
In the pubspec.yaml of your flutter or dart project, add the following dependency:
dependencies:
...
lokdon_core: ^1.0.0
Run:
flutter pub get
Import it:
import 'package:lokdon_sdk/lokdon_sdk.dart';
Usage #
Encrypt on a String input #
To Encrypt a string, use the ['encryptData'][encryptData] function
import 'package:lokdon_sdk/lokdon_sdk.dart';
void main() {
String data = "sample text";
var cipher = encryptData(data);
print("Cipher for data ${cipher}");
}
Decrypt on a cipher input #
To decrypt a cipher encrypted using the Lokdon Algorithm, use the ['decryptData'][decryptData] function
import 'package:lokdon_sdk/lokdon_sdk.dart';
void main() {
String cipher = "Î}¯z*£^ġ:-ß";
var data = encryptData(cipher);
print("Data from cipher ${data}");
}