Cartik R. Kothari

18 papers Misc 6Journal 2Unranked 4
YearRankTypeTitle / Venue / Authors
2018 ch.
Encyclopedia of Database Systems (2nd ed.)
Zoé Lacroix, Cartik R. Kothari, Peter Mork, Mark D. Wilkinson, Sarah Cohen Boulakia
2018 ch.
Encyclopedia of Database Systems (2nd ed.)
Zoé Lacroix, Cartik R. Kothari, Peter Mork, Rami Rifaieh, Mark D. Wilkinson, Juliana Freire, Sarah Cohen Boulakia
2018 ch.
Encyclopedia of Database Systems (2nd ed.)
Cartik R. Kothari, Mark D. Wilkinson
2015 conf
MedInfo
Cartik R. Kothari, Philip R. O. Payne
2012 conf
EIT
Cartik R. Kothari, Joseph Qualls, David J. Russomanno
2009 ch.
Encyclopedia of Database Systems
Zoé Lacroix, Cartik R. Kothari, Peter Mork, Mark D. Wilkinson, Sarah Cohen Boulakia
2009 ch.
Encyclopedia of Database Systems
Zoé Lacroix, Cartik R. Kothari, Peter Mork, Rami Rifaieh, Mark D. Wilkinson, Juliana Freire, Sarah Cohen Boulakia
2009 ch.
Encyclopedia of Database Systems
Cartik R. Kothari, Mark D. Wilkinson
2008 J jnl
Int. J. Softw. Eng. Knowl. Eng.
Cartik R. Kothari, David J. Russomanno
2008 Misc conf
IKE
Cartik R. Kothari, Mark D. Wilkinson
2007 Misc conf
IKE
Cartik R. Kothari, Mark D. Wilkinson
2006 conf
SWWS
Jahangheer S. Shaik, Cartik R. Kothari, David J. Russomanno, Mohammed Yeasin
2005 Misc conf
IC-AI
Cartik R. Kothari, David J. Russomanno
2005 Misc conf
IC-AI
David J. Russomanno, Cartik R. Kothari, Omoju A. Thomas
2004 J jnl
Expert Syst. J. Knowl. Eng.
David J. Russomanno, Cartik R. Kothari
2004 Misc conf
ICCS
Cartik R. Kothari, David J. Russomanno
2004 conf
Description Logics
Cartik R. Kothari, David J. Russomanno
2003 Misc conf
IKE
David J. Russomanno, Cartik R. Kothari
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