You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
486 B
21 lines
486 B
import 'dart:typed_data'; |
|
|
|
abstract class Argon2 { |
|
Uint8List argon2(Argon2Arguments args); |
|
|
|
Future<Uint8List> argon2Async(Argon2Arguments args); |
|
} |
|
|
|
class Argon2Arguments { |
|
Argon2Arguments(this.key, this.salt, this.memory, this.iterations, |
|
this.length, this.parallelism, this.type, this.version); |
|
|
|
final Uint8List key; |
|
final Uint8List salt; |
|
final int memory; |
|
final int iterations; |
|
final int length; |
|
final int parallelism; |
|
final int type; |
|
final int version; |
|
}
|
|
|