Hakim Akeb

15 papers C 3Journal 10Unranked 1
YearRankTypeTitle / Venue / Authors
2022 J jnl
Ann. Oper. Res.
Hakim Akeb, Aldo Lévy, Mohamed Rdali
2022 J jnl
Ann. Oper. Res.
Mondher Bellalah, Hakim Akeb, Kehan Si, Detao Zhang
2014 C conf
FedCSIS
Hakim Akeb
2013 C conf
FedCSIS
Hakim Akeb, Adel Bouchakhchoukha, Mhand Hifi
2013 ch.
Recent Advances in Computational Optimization
Hakim Akeb, Mhand Hifi, Dominique Lazure
2013 conf
WCO@FedCSIS
Hakim Akeb, Adel Bouchakhchoukha, Mhand Hifi
2013 J jnl
Comput. Oper. Res.
Hakim Akeb, Mhand Hifi
2012 C conf
FedCSIS
Hakim Akeb, Mhand Hifi, Dominique Lazure
2011 J jnl
Comput. Ind. Eng.
Hakim Akeb, Mhand Hifi, Stéphane Nègre
2011 J jnl
Comput. Ind. Eng.
Hakim Akeb, Mhand Hifi, Mohamed Elhafedh Ould Ahmed Mounir
2010 J jnl
J. Comb. Optim.
Hakim Akeb, Mhand Hifi
2010 J jnl
Int. Trans. Oper. Res.
Hakim Akeb, Mhand Hifi, Rym M'Hallah
2009 J jnl
Comput. Oper. Res.
Hakim Akeb, Mhand Hifi, Rym M'Hallah
2008 J jnl
Int. Trans. Oper. Res.
Hakim Akeb, Mhand Hifi
2005 J jnl
J. Oper. Res. Soc.
Wen Qi Huang, Yu Li, Hakim Akeb, Chu Min Li
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