mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
9 lines
204 B
Dart
9 lines
204 B
Dart
import 'package:encrypt/encrypt.dart' as encrypt;
|
|
|
|
String generateKey() {
|
|
final key = encrypt.Key.fromSecureRandom(512);
|
|
final iv = encrypt.IV.fromSecureRandom(8);
|
|
|
|
return key.base64 + iv.base64;
|
|
}
|