

def run(self, form_input):
    hash_type = hash_type['hash_type']
    filename = form_input['filename']
    file_stream = form_input['file_stream']
    f = file_stream.read()
    output = hash(hash_type, f)
    return {
        'output_type': 'table',
        'headers': ['Algorithm', 'Hash'],
        'output': output,
    }

dataset/ETHPy150Open mosesschwartz/scrypture/scrypture/demo_scripts/Security/file_hash.py WebAPI.run/VarMisuse@14/19 `form_input`->`hash_type`