detect static method
Detects the hashing algorithm of data
or return null
.
Implementation
static APIPasswordHashAlgorithm? detect(String data) {
var apiPasswordSHA256 = APIPasswordSHA256();
if (apiPasswordSHA256.isHashedPassword(data)) {
return apiPasswordSHA256;
}
return null;
}