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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -