hashlib
-
python hmac 라이브러리를 이용한 암호화Backend/암호화관련 2023. 6. 9. 15:53
필자는 백엔드 프로젝트를 하며, 프론트와의 통신 전에 미들웨어에 적용한 암호화 한 것이 있다. FastAPI를 사용했으며, python의 hmac, hashlib 라이브러리를 사용했다. 공식 url : https://docs.python.org/ko/3/library/hmac.html hmac — Keyed-Hashing for Message Authentication Source code: Lib/hmac.py This module implements the HMAC algorithm as described by RFC 2104. An HMAC object has the following methods: A hash object has the following attributes: This module..