Ian G. Platt

11 papers A 3B 4C 1Journal 2Unranked 1
YearRankTypeTitle / Venue / Authors
2023 C conf
IGARSS
Adrian Eng-Choon Tan, Wolfgang Rack, Kimberley W. Eccleston, Ian G. Platt, Eva-M. Anton, Ian M. Woodhead
2022 J jnl
IEEE Trans. Instrum. Meas.
Ben Mitchell, Yiwen Zhou, Michael P. Hayes, Bill Heffernan, Ian G. Platt, Joseph Bailey, Arvid Hunze, Ke Gao, Nicholas J. Long, Ian Woodhead
2021 J jnl
IEEE Trans. Geosci. Remote. Sens.
Adrian Eng-Choon Tan, Josh McCulloch, Wolfgang Rack, Ian G. Platt, Ian Woodhead
2015 conf
ICARA
Ian Woodhead, Adrian Eng-Choon Tan, Sean Richards, Ian G. Platt
2015 A conf
ICST
Ian G. Platt, Ian Woodhead, Michael Hagedorn
2014 B conf
SAS
Adrian Eng-Choon Tan, Sean Richards, Ian G. Platt, Ian Woodhead
2014 B conf
SAS
Sean Richards, Adrian Eng-Choon Tan, Ian G. Platt, Ian Woodhead
2014 B conf
SAS
John Christie, Ian G. Platt
2014 B conf
SAS
Ian G. Platt, Ian M. Woodhead, Adrian Eng-Choon Tan, Sean Richards, Michael Hagedorn
2013 A conf
ICST
Sean Richards, Adrian Eng-Choon Tan, Ian G. Platt, Ian Woodhead
2013 A conf
ICST
Adrian Eng-Choon Tan, Sean Richards, Ian G. Platt, Ian Woodhead
redb/extractors/decompiler/bninja/utils/hashes.py
← Index redb/extractors/decompiler/bninja/utils/hashes.py python
import hashlib

import tlsh


def calculate_md5(input_str):
    return hashlib.md5(input_str.encode("utf-8")).hexdigest()


def calculate_sha256(input_str):
    """Calculate SHA256 hash of a string."""
    return hashlib.sha256(input_str.encode("utf-8")).hexdigest()

def calculate_tlsh(data):
    """Calculate TLSH fuzzy hash of data if available.

    Args:
        data: The string data to calculate the hash for

    Returns:
        The TLSH hash as a string, or None if not available

    Note:
        TLSH requires at least 50 bytes of data to generate a hash
    """
    try:
        if len(data) >= 50:
            return tlsh.hash(data.encode("utf-8"))
    except Exception:
        pass
    return None