James Bailey

14 papers A 1C 1Misc 1Journal 8Unranked 3
YearRankTypeTitle / Venue / Authors
2026 J jnl
CoRR
Siyi Wang, Shihong Tan, Siyi Liu, Hong Jia, Gongping Huang, James Bailey, Ting Dang
2026 J jnl
CoRR
Haoguang Zhou, Siyi Wang, Jingyao Wu, James Bailey, Ting Dang
2026 J jnl
CoRR
Yuansan Liu, Antoinette Tordesillas, James Bailey
2025 J jnl
CoRR
Jiaheng Dong, Hong Jia, Soumyajit Chatterjee, Abhirup Ghosh, James Bailey, Ting Dang
2025 J jnl
CoRR
Yuning Zhou, Henry Badgery, Matthew Read, James Bailey, Catherine E. Davey
2025 conf
CAiSE (1)
Wenjun Zhou, Artem Polyvyanyy, James Bailey
2024 conf
MIDL
Yuning Zhou, Henry Badgery, Matthew Read, James Bailey, Catherine E. Davey
2024 J jnl
CoRR
Yuning Zhou, Henry Badgery, Matthew Read, James Bailey, Catherine E. Davey
2024 conf
CAiSE Forum
Wenjun Zhou, Artem Polyvyanyy, James Bailey
2023 J jnl
CoRR
Wenjun Zhou, Artem Polyvyanyy, James Bailey
2017 C conf
CIT
Rafael Valero-Fernandez, David J. Collins, Colin Rigby, James Bailey
2011 J jnl
J. Am. Medical Informatics Assoc.
Kevin B. Johnson, Kim M. Unertl, Qingxia Chen, Nancy M. Lorenzi, Hui Nian, James Bailey, Mark E. Frisse
2005 Misc conf
ADC
James Bailey
2001 A conf
ICDT
James Bailey, Szabolcs Mikulás
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