Isael Diaz

13 papers B 1C 4Journal 2Unranked 5
YearRankTypeTitle / Venue / Authors
2015 C conf
ISCAS
Isael Diaz, Siyu Tan, Yun Miao, Leif R. Wilhelmsson, Ove Edfors, Viktor Öwall
2015 J jnl
Circuits Syst. Signal Process.
Isael Diaz, Leif R. Wilhelmsson, Paschalis C. Sofotasios, Yun Miao, Siyu Tan, Ove Edfors, Viktor Öwall
2015 J jnl
Microprocess. Microsystems
Isael Diaz, Chenxin Zhang, Lieven Hollevoet, Jim Svensson, Joachim Neves Rodrigues, Leif R. Wilhelmsson, Thomas Olsson, Liesbet Van der Perre, Viktor Öwall
2014
Isael Diaz
2013 conf
NORCHIP
Isael Diaz, Chenxin Zhang, Lieven Hollevoet, Jim Svensson, Joachim Neves Rodrigues, Leif R. Wilhelmsson, Thomas Olsson, Liesbet Van der Perre, Viktor Öwall
2012 conf
ICECS
Isael Diaz, Rodolfo Torrea Duran, Sofie Pollin, Liesbet Van der Perre, Viktor Öwall
2011 B conf
WCNC
Leif R. Wilhelmsson, Isael Diaz, Thomas Olsson, Viktor Öwall
2011 conf
SiPS
Isael Diaz, Balaji Sathyanarayanan, Alirad Malek, Farzad Foroughi, Joachim Neves Rodrigues
2011 C conf
ISCAS
Chenxin Zhang, Isael Diaz, Per Andersson, Joachim Neves Rodrigues, Viktor Öwall
2010 C conf
ISCAS
Thomas Olsson, Anders Carlsson, Leif R. Wilhelmsson, Johan Eker, Carl von Platen, Isael Diaz
2010 C conf
ISCAS
Isael Diaz, Leif R. Wilhelmsson, Joachim Neves Rodrigues, Johan Löfgren, Thomas Olsson, Viktor Öwall
2010 conf
VTC Spring
Leif R. Wilhelmsson, Isael Diaz, Thomas Olsson, Viktor Öwall
2007 conf
ICDSC
Isael Diaz, Marc J. M. Heijligers, Richard P. Kleihorst, Alexander Danilin
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