aes256cipher 0.0.3 copy "aes256cipher: ^0.0.3" to clipboard
aes256cipher: ^0.0.3 copied to clipboard

The Flutter AES256Cipher convert module, String text(Sentence) easy Encrypted/Decrypted

🛡️ AES256Cipher #

AES256Cipher convert text to security module.


📌 Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for current only possible Android/iOS (will be possible "iOS" 0.0.2 version later).

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.


🍔 Add #

flutter pub add aes256cipher
import 'package:aes256cipher/aes256cipher.dart';

🚀 Usage #

Create instance 🌱

  • You must input 32-bit char into key parameter.
  • Don't use different own your key🔑.
parameter required type default
key ✔️ String
ivSpec bool true
final AES256Cipher aes256Cipher = AES256Cipher(key: [String - length: 32]);
// ex.
final AES256Cipher aes256cipher = AES256Cipher(key: "A1234567B1234567C1234567D1234567");

Encrypted 🔐 #

final String value = "Something Sentence";

final String encryptResult = aes256Cipher.encrypt(value);
// encryptResult: OUPswS1JeArwaeKSvGtaAeb3C+Sm8UookvDIwwGk9c2XNhtqClmRADo1r4MXUGiY

Decrypted 🔓 #

final String decryptResult = aes256Cipher.decrypt(encryptResult);   // encryptedResult: OUPswS1JeArwaeKSvGtaAeb3C+Sm8UookvDIwwGk9c2XNhtqClmRADo1r4MXUGiY
// decryptResult: Something Sentence

iOS Android
iOS Exam GIF Android Exam GIF

⛑️ ivSpec parameter #

  • Return more security encrypted value.
  • Default is true
  • If you use false return always same value.

ivSpec = true

final String target = "Something Sentence";

final AES256Cipher cipher = AES256Cipher(key: "ABCDEFGH" * 4, ivSpec: true);
final String result = await cipher.encrypt(target);

Log.d("result:$result");
// result: d6RyFwWMFVcQN7juca9+ZH7L4ISYxbUblvLMe1XIU7yLIVEeJMzysW2FY22LRfX7
// length: 64

ivSpec = false

final String target = "Something Sentence";

final AES256Cipher cipher = AES256Cipher(key: "ABCDEFGH" * 4, ivSpec: false);
final String result = await cipher.encrypt(target);

Log.d("result:$result");
// result: ZAXCHBrpfp05oLP69/KNVO3Baxmrtcrxgx9ZZgysVY0=
// length: 44

0
likes
150
points
24
downloads

Publisher

verified publisherlagerstroemia.net

Weekly Downloads

The Flutter AES256Cipher convert module, String text(Sentence) easy Encrypted/Decrypted

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on aes256cipher