crypto_simple 1.1.1 crypto_simple: ^1.1.1 copied to clipboard
A library for encrypt and decrypt string , very light & simple and fast.
crypto_simple #
A library for encrypt and decrypt string , very light & simple and fast.
Get started #
Add dependency #
dependencies:
crypto_simple: ^1.1.1
Add import #
import 'package:crypto_simple/crypto_simple.dart';
Super simple to use #
Initialize Package ..
import 'package:crypto_simple/crypto_simple.dart';
void main () {
CryptoSimple(superKey: 2022 , subKey: 99); ///this part is mandatory
runApp(MyApp());
}
Using ..
String? _token = 'bearer 5@1#fG!';
String? _encodeResult =
CryptoSimple.instance.encrypt(inputText: _token!); /// easy encrypt !
String? _decodeResult =
CryptoSimple.instance.decrypt(encryptedText: _encodeResult!);/// easy decrypt !