Raja Balasubramanian

15 papers Journal 3Unranked 12
YearRankTypeTitle / Venue / Authors
2000 conf
CIC
Raja Balasubramanian, Ricardo L. de Queiroz, Reiner Eschbach, Wencheng Wu
1999 conf
PICS
Raja Balasubramanian, Reiner Eschbach
1999 conf
CIC
Karen M. Braun, Raja Balasubramanian, Reiner Eschbach
1999 conf
CIC
Karen M. Braun, Raja Balasubramanian, Steven J. Harrington
1999 J jnl
J. Electronic Imaging
Raja Balasubramanian
1999 conf
CIC
Raja Balasubramanian
1998 conf
Color Imaging: Device-Independent Color, Color Hardcopy, and Graphic Arts
Raja Balasubramanian, Ricardo L. de Queiroz, Zhigang Fan
1997 conf
CIC
R. Victor Klassen, Raja Balasubramanian, Ricardo L. de Queiroz
1997 conf
Color Imaging: Device-Independent Color, Color Hard Copy, and Graphic Arts
Raja Balasubramanian, Edul N. Dalal
1996 conf
Color Imaging: Device-Independent Color, Color Hard Copy, and Graphic Arts
Raja Balasubramanian, Martin S. Maltz
1995 J jnl
IEEE Trans. Image Process.
Raja Balasubramanian, Charles A. Bouman, Jan P. Allebach
1994 conf
CIC
Raja Balasubramanian
1994 conf
CIC
Martin Maltz, Raja Balasubramanian
1994 J jnl
J. Electronic Imaging
Raja Balasubramanian, Charles A. Bouman, Jan P. Allebach
1993 conf
CIC
Robert J. Rolleston, Raja Balasubramanian
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