lokdon_sdk

Last updated:

0 purchases

lokdon_sdk Image
lokdon_sdk Images
Add to Cart

Description:

lokdon sdk

Lokdon Encryption and Decryption Package #
Dart plugin for Lokdon SDK
Check this Demo Project or this Video Demo to gain more clarity
Getting Started #
In the pubspec.yaml of your flutter or dart project, add the following dependency:
dependencies:
...
lokdon_sdk: ^1.0.4
copied to clipboard
Run:
flutter pub get
copied to clipboard
Import it:
import 'package:lokdon_sdk/lokdon_sdk.dart';
copied to clipboard
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}");
}

copied to clipboard
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}");
}

copied to clipboard
Encrypt and Decrypt Files #
To Encrypt files, use the ['encryptFile'][encryptFile] function

File file = File("lok.txt");
if (!file.existsSync()){
file.createSync();
}

file.writeAsBytesSync("alexander".codeUnits);

File encryptedFile = encryptFile(file, " .", file.path);

print("encrypted File ${encryptedFile.path} ${encryptedFile.readAsStringSync()}");

//encrypted File lok.txt.lokdon ABEVA@DKR


copied to clipboard
To Decrypt an encrypte file, use the ['decryptFile'][decryptFile] function

File decryptedFile = decryptFile(encryptedFile, " .", file.path);

print("decrypted File ${decryptedFile.path} ${decryptedFile.readAsStringSync()}");

// decrypted File lok.txtLOKDONDECRYPTED. alexander
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.