Identify function

List<HashInfo> Identify(
  1. String text,
  2. List<Prototype> prototypes
)

Returns list of hashing alorithms possibly used to create the hash

Implementation

List<HashInfo> Identify(String text, List<Prototype> prototypes) {
  var result = <HashInfo>[];
  prototypes.forEach((Prototype p) => {
        if (p.exp.hasMatch(text)) {result..addAll(p.modes)}
      });
  return result;
}