python - Storing MD5 digest in Postgres -
i'm generating md5 digests python so:
import hashlib m = hashlib.m5() md5 = m.update('some_string') return md5.digest()
now, looking @ a similar question, see should use bytea type. however, plan using above snippet generate these digests, although i'm open modifying it. there should aware of being sending off db assuming have field of type bytea? proper way of storing digests? might redundant question, wanted sure. i'm storing md5s of files , planning on using hash unique identifier; nothing mission critical.
Comments
Post a Comment