/**
  * Checks if provided hash has been computed by most recent algorithm
  * returns true if otherwise
  *
  * @param string $hash
  * the hash to be checked
  * @return boolean
  * whether the hash should be re-computed
  */
 public static function requiresMigration($hash)
 {
     $version = substr($hash, 0, 8);
     if ($version == PBKDF2::PREFIX) {
         // salted PBKDF2, let the responsible class decide
         return PBKDF2::requiresMigration($hash);
     } else {
         // everything else
         return true;
     }
 }