hashlib 패키지의 md5() 함수를 이용하여 문자열에 대한 해쉬값을 구하는 예제입니다. import hashlib text = 'asdf' enc = hashlib.md5() enc.update(text) encText = enc.hexdigest() print(encText) 그러나, 실행하면 다음과 같은 오류가 발생하였습니다. Traceback (most recent call last): File "d:\Dev\Python\Test\hello.py", line 8, in enc.update(text) TypeError: Unicode-objects must be encoded before hashing MD5 해쉬값을 구하기 위해서, update() 함수에 전달해야할 데이터는 byte array..