Jacques J. Vidal

13 papers Journal 7Unranked 6
YearRankTypeTitle / Venue / Authors
1993 J jnl
Neural Networks
Jeffrey Hoffman, Josef Skrzypek, Jacques J. Vidal
1992 J jnl
Int. J. Pattern Recognit. Artif. Intell.
James M. Goodwin, Bruce E. Rosen, Jacques J. Vidal
1992 J jnl
Biol. Cybern.
Bruce E. Rosen, James M. Goodwin, Jacques J. Vidal
1990 conf
NIPS
Bruce E. Rosen, James M. Goodwin, Jacques J. Vidal
1988 J jnl
J. Parallel Distributed Comput.
Tony R. Martinez, Jacques J. Vidal
1988 conf
ICNN
James M. Goodwin, Bruce E. Rosen, Jacques J. Vidal
1988 J jnl
IEEE Trans. Acoust. Speech Signal Process.
Jacques J. Vidal
1988 conf
ICNN
Joseph C. Pemberton, Jacques J. Vidal
1987 conf
NIPS
Bruce E. Rosen, James M. Goodwin, Jacques J. Vidal
1987 conf
NIPS
Jacques J. Vidal, John Haggerty
1975 J jnl
IEEE Trans. Computers
Didier H. Schwartzmann, Jacques J. Vidal
1966 conf
AFIPS Fall Joint Computing Conference
Jacques J. Vidal
1965 J jnl
IEEE Trans. Electron. Comput.
Jacques J. Vidal, S. M. Bawin
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