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 (will be possible "and/or iOS" 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 :heavy_check_mark: String
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

Libraries

aes256cipher