Skip to content

Instantly share code, notes, and snippets.

View alessioC42's full-sized avatar
🏐
My precious code... we wants it, we needs it. Must commit, must push!

Alessio Caputo alessioC42

🏐
My precious code... we wants it, we needs it. Must commit, must push!
View GitHub Profile
@suehok
suehok / cryptojs_aes_encryption_helper.dart
Last active May 30, 2024 08:15
Cryptojs aes password encryption helper for dart
import 'dart:convert';
import 'dart:math';
import 'dart:typed_data';
import 'package:crypto/crypto.dart';
import 'package:tuple/tuple.dart';
import 'package:encrypt/encrypt.dart' as encrypt;
String encryptAESCryptoJS(String plainText, String passphrase) {
try {
final salt = genRandomWithNonZero(8);