crypto_simple 1.1.0 crypto_simple: ^1.1.0 copied to clipboard
A library for encrypt and decrypt string , very light & simple and fast.
crypto_simple #
A Simple Cryptography Package For Flutter .
Get started #
Add dependency #
dependencies:
crypto_simple: ^1.0.0
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); ///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 !