DVRangeQueryBreachedPasswords class

A k-anonymity range query: the first five characters of the password's SHA-1 go to the service, which answers every suffix it holds under that prefix. The password and its full hash never leave the process.

fetchRange fetches the range for a prefix; overHttp builds one over DV.Http. No service is built in.

Implemented types

Constructors

DVRangeQueryBreachedPasswords(Future<String> fetchRange(String prefix))
DVRangeQueryBreachedPasswords.overHttp(Uri endpoint(String prefix), {DVHttp http = const DVHttp(), Map<String, String> headers = const <String, String>{}})
A range query over DV.Http, asking endpoint for each prefix.
factory

Properties

fetchRange → Future<String> Function(String prefix)
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(String password) → Future<bool>
Throws DVBreachedPasswordsUnavailable when it cannot answer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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