HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //proc/self/root/lib/python3/dist-packages/landscape/lib/hashlib.py
"""Provide backward compatible access to hashlib functions."""

try:
    _hashlib = __import__("hashlib")
except ImportError:
    from md5 import md5
    from sha import sha as sha1
else:
    md5 = _hashlib.md5
    sha1 = _hashlib.sha1


__all__ = ["md5", "sha1"]