DartPbkdf2 class

Pbkdf2 implemented in pure Dart.

For examples and more information about the algorithm, see documentation for the superclass Pbkdf2.

Inheritance

Constructors

DartPbkdf2({required MacAlgorithm macAlgorithm, required int iterations, required int bits, int pauseFrequency = 2000, Duration pausePeriod = const Duration(milliseconds: 1)})
const

Properties

bits int
Number of bits that will be returned by deriveKey method.
final
hashCode int
The hash code for this object.
no setterinherited
iterations int
Number of iterations.
final
macAlgorithm MacAlgorithm
MAC algorithm.
final
pauseFrequency int
How often to pause to allow the main event loop to handle events.
final
pausePeriod Duration
The duration of a pause every pauseFrequency iterations.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deriveKey({required SecretKey secretKey, required List<int> nonce}) Future<SecretKey>
Generates a new secret key from a secret key and a nonce.
override
deriveKeyFromPassword({required String password, required List<int> nonce}) Future<SecretKey>
Generates a new secret key from a password and a nonce.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toSync() DartPbkdf2
Returns a pure Dart implementation of PBKDF2 with the same parameters.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited