This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/resources/utils.py

7 lines
199 B
Python
Raw Permalink Normal View History

2021-03-08 11:39:17 +00:00
from hashids import Hashids
from decouple import config
ALPHABET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
SECRET = config('TAG_HASH', '')
2021-03-08 12:09:01 +00:00
hashcode = Hashids(SECRET, min_length=5, alphabet=ALPHABET)