# Path: suma/core/services/interfaces/hashid.py
# class IHashIdService(Interface):
# 
#     def encode(self, primary_id, secondary_id=None):
#         pass
# 
#     def decode(self, short_id):
#         pass


from suma.core.services.interfaces import IHashIdService
from zope.interface import implementer
from structlog import get_logger
import hashids
log = get_logger()


@implementer(IHashIdService)
class HashIdService(object):

# Path: suma/core/services/interfaces/hashid.py
# class IHashIdService(Interface):
# 
#     def encode(self, primary_id, secondary_id=None):
#         pass
# 
#     def decode(self, short_id):
#         pass


# Path: suma/core/services/hashid.py
from suma.core.services.interfaces import IHashIdService
from zope.interface import implementer
from structlog import get_logger
import hashids

log = get_logger()


@implementer(IHashIdService)
class HashIdService(object):

    def __init__(self, secret):