# Path: native_tags/decorators.py
# def tag(bucket, doc):
#     def wrapped(inner, **options):


from django import VERSION as django_version
    from hashlib import md5 as md5_constructor, sha1 as sha_constructor
    from django.utils.hashcompat import md5_constructor, sha_constructor
from native_tags.decorators import function, filter
        import hashlib
if django_version >= (1, 5, 0):
else:

def hexd(algo, value):
    lookup = {
        'md5': md5_constructor,
        'sha1': sha_constructor,
        'sha': sha_constructor,
    }
    try:
        lookup.update({
            'sha224': hashlib.sha224,
            'sha256': hashlib.sha256,
            'sha384': hashlib.sha384,
            'sha512': hashlib.sha512,
        })
    except ImportError:
        pass
    try:

# Path: native_tags/decorators.py
# def tag(bucket, doc):
#     def wrapped(inner, **options):


# Path: native_tags/contrib/hash.py
from django import VERSION as django_version
    from hashlib import md5 as md5_constructor, sha1 as sha_constructor
    from django.utils.hashcompat import md5_constructor, sha_constructor
from native_tags.decorators import function, filter
        import hashlib

if django_version >= (1, 5, 0):
else:

def hexd(algo, value):
    lookup = {
        'md5': md5_constructor,
        'sha1': sha_constructor,
        'sha': sha_constructor,
    }
    try:
        lookup.update({
            'sha224': hashlib.sha224,
            'sha256': hashlib.sha256,
            'sha384': hashlib.sha384,
            'sha512': hashlib.sha512,
        })
    except ImportError:
        pass
    try:

        return lookup[algo](value).hexdigest()