I tried to reproduce md5 (uniqid (mt_rand (), true)) used in PHP's CSRF measures with Python, but thank you for your cooperation.
python
import uuid
import hashlib
token = hashlib.md5( str(uuid.uuid4()) ).hexdigest()
Recommended Posts