smart_encrypt 1.0.3
smart_encrypt: ^1.0.3 copied to clipboard
library for easy use encrypt & decrypt features, generate bytes & string
example/smart_encrypt_example.dart
import 'dart:typed_data';
import 'package:smart_encrypt/smart_encrypt.dart';
void main() {
print(SmartEncrypt.getRandomNumbers(24));
print(SmartEncrypt.getRandomString(30));
print(SmartEncrypt.createDataHash256('Hello world'));
String str = 'Hello world';
Uint8List key = SmartEncrypt.createKey();
Uint8List iv = SmartEncrypt.createIV();
str = SmartEncrypt.encrypt(str, key, iv);
print(str);
print(SmartEncrypt.decrypt(str, key, iv));
}