Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/g/o/golismero-2.0.3-1/golismero/api/data/vulnerability/malware/__init__.py   golismero(Download)
from ...information import Information
from ...resource import Resource
from ....crypto import validate_hash
 
 
                if not value:
                    raise ValueError("Empty hash value!")
                if validate_hash(name, value) is False:
                    raise ValueError("Invalid hash! %s: %s" % (name, value))
 

src/g/o/golismero-HEAD/golismero/api/data/vulnerability/malware/__init__.py   golismero(Download)
from ...information import Information
from ...resource import Resource
from ....crypto import validate_hash
 
 
                if not value:
                    raise ValueError("Empty hash value!")
                if validate_hash(name, value) is False:
                    raise ValueError("Invalid hash! %s: %s" % (name, value))