M. Maruf Hossain

11 papers A 2B 1Journal 5Unranked 3
YearRankTypeTitle / Venue / Authors
2026 J jnl
CoRR
Ahilan Ayyachamy Nadar Ponnusamy, Karthic Chandran, M. Maruf Hossain
2025 J jnl
CoRR
Amin Sadri, M. Maruf Hossain
2013 J jnl
Neurocomputing
Md. Rafiul Hassan, Kotagiri Ramamohanarao, Joarder Kamruzzaman, Mustafizur Rahman, M. Maruf Hossain
2010 conf
PAKDD (1)
Md. Rafiul Hassan, Kotagiri Ramamohanarao, Chandan K. Karmakar, M. Maruf Hossain, James Bailey
2010 J jnl
Comput. Biol. Medicine
Md. Rafiul Hassan, M. Maruf Hossain, Rezaul K. Begg, Kotagiri Ramamohanarao, Yos S. Morsi
2009 J jnl
BMC Bioinform.
Md. Rafiul Hassan, M. Maruf Hossain, James Bailey, Geoff MacIntyre, Joshua Wing Kei Ho, Kotagiri Ramamohanarao
2009 A conf
SDM
Shaoyi Zhang, M. Maruf Hossain, Md. Rafiul Hassan, James Bailey, Kotagiri Ramamohanarao
2008 B conf
PAKDD
M. Maruf Hossain, Md. Rafiul Hassan, Michael Kirley
2008 conf
ECML/PKDD (1)
Md. Rafiul Hassan, M. Maruf Hossain, James Bailey, Kotagiri Ramamohanarao
2008 conf
SEAL
Md. Rafiul Hassan, M. Maruf Hossain, Chandan K. Karmakar, Michael Kirley
2008 A conf
SDM
M. Maruf Hossain, Md. Rafiul Hassan, James Bailey
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