cryptography (1) 썸네일형 리스트형 [Python] cryptography로 대칭키 암호화 하는 방법 Python에서 중요한 정보를 암호화하는 방법을 cryptography를 이용하는 방법을 포스팅합니다. cryptography 설치 pip install cryptographypython 3.7.3 이상 버전에는 기본패키지로 포함되어 있습니다. 샘플 코드 from cryptography.fernet import Fernet key = Fernet.generate_key() # 키 임의 생성 print(key) cipher_suite = Fernet(key) print(cipher_suite) cipher_text = cipher_suite.encrypt(b"hi cryptography.fernet") plain_text = cipher_suite.decrypt(cipher_text) print("encr.. 이전 1 다음