예제 #1
0
 def identify(cls, hash):
     hash = uh.to_unicode_for_identify(hash)
     return cls._ident_regex.match(hash) is not None
예제 #2
0
 def identify(cls, hash):
     hash = uh.to_unicode_for_identify(hash)
     if not hash:
         return False
     return hash.startswith(cls.prefix)
예제 #3
0
 def identify(cls, hash):
     # NOTE: identifies all strings EXCEPT those with {XXX} prefix
     hash = uh.to_unicode_for_identify(hash)
     return bool(hash) and cls._2307_pat.match(hash) is None
예제 #4
0
 def identify(cls, hash):
     hash = uh.to_unicode_for_identify(hash)
     return hash.startswith(cls.ident_values)
예제 #5
0
 def identify(cls, hash):
     hash = uh.to_unicode_for_identify(hash)
     return hash.startswith(cls._hash_prefix)
예제 #6
0
 def identify(cls, hash):
     hash = uh.to_unicode_for_identify(hash)
     return hash.startswith(u("!"))
예제 #7
0
 def identify(cls, hash):
     hash = uh.to_unicode_for_identify(hash)
     return hash.startswith(cls.ident_values)