# Path: lib/jhash.py
# def string_to_md5(content):
#     """Calculate the md5 hash of a string.
# 
#     This 'string' can be the binary content of a file too."""
#     content = content.encode("utf8")
#     return hashlib.md5(content).hexdigest()


    import os
    import sys
import getpass
import platform as p
import socket
import uuid
from lib.jhash import string_to_md5
    """
    Is the current platform Linux?
    """
    return sys.platform.startswith('linux')


def get_distro():
    """
    Name of your Linux distro (in lowercase).
    """
    with open("/etc/issue") as f:
        return f.read().lower().split()[0]


def get_fingerprint(md5=False):
    """
    Fingerprint of the current operating system/platform.

    If md5 is True, a digital fingerprint is returned.
    """
    sb = []
    sb.append(p.node())
    sb.append(p.architecture()[0])
    sb.append(p.architecture()[1])
    sb.append(p.machine())
    sb.append(p.processor())
    sb.append(p.system())
    sb.append(str(uuid.getnode()))    # MAC address
    text = '#'.join(sb)
    if md5:

# Path: lib/jhash.py
# def string_to_md5(content):
#     """Calculate the md5 hash of a string.
# 
#     This 'string' can be the binary content of a file too."""
#     content = content.encode("utf8")
#     return hashlib.md5(content).hexdigest()


# Path: lib/podium.py
    import os
    import sys
import getpass
import platform as p
import socket
import uuid
from lib.jhash import string_to_md5

    """
    Is the current platform Linux?
    """
    return sys.platform.startswith('linux')


def get_distro():
    """
    Name of your Linux distro (in lowercase).
    """
    with open("/etc/issue") as f:
        return f.read().lower().split()[0]


def get_fingerprint(md5=False):
    """
    Fingerprint of the current operating system/platform.

    If md5 is True, a digital fingerprint is returned.
    """
    sb = []
    sb.append(p.node())
    sb.append(p.architecture()[0])
    sb.append(p.architecture()[1])
    sb.append(p.machine())
    sb.append(p.processor())
    sb.append(p.system())
    sb.append(str(uuid.getnode()))    # MAC address
    text = '#'.join(sb)
    if md5:

        return string_to_md5(text)