lokdon_sdk 1.0.4 copy "lokdon_sdk: ^1.0.4" to clipboard
lokdon_sdk: ^1.0.4 copied to clipboard

Lokdon Dart 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

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

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


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
1
likes
110
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

Lokdon Dart SDK

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

basic_utils, characters, sprintf

More

Packages that depend on lokdon_sdk