python:实现ID混淆
# -*- coding: utf-8 -*-
from hashids import Hashids
hashids = Hashids(salt='gu2kBqW38Zw=', min_length=8)
# 编码
trick_id = hashids.encode(119
# -*- coding: utf-8 -*-
from hashids import Hashids
hashids = Hashids(salt='gu2kBqW38Zw=', min_length=8)
# 编码
trick_id = hashids.encode(119