def get_col_encryption_type(col_name, integrity_info):
    """
    Returns type based on whether the column is encrypted as number (OPE) or symmetrically (Fernet) or asymmetrically (ABE)- this
    is based on "type" attribute in TinyDB
    :param integrity_info: {
            'device_data': {
                'added': {
                    'seed': 12312412,
                    'lower_bound': 1,
                    'upper_bound': 1,
                    'type': "OPE"
                    }}}
    :param col_name: e.g. "device_data:data"
    :return:
    """
    table, col = col_name.split(":")
    return integrity_info[table][col]["type"]