def unique_hash(filepath, blocksize=2**20):
    s = sha1()
    with open(filepath , "rb") as f:
        while True:
            buf = f.read(blocksize)
            if not buf:
                break
            s.update(buf)
    return s.hexdigest().upper()
Enforce SSL request.
dataset/ETHPy150Open worldveil/dejavu/dejavu/decoder.py/unique_hash--crossover with--dataset/ETHPy150Open lepture/flask-oauthlib/flask_oauthlib/provider/oauth1.py/OAuth1RequestValidator.enforce_ssl