The most efficient way to store base64 encoded data is to decode it and save it as a binary file. base64 is a transport encoding - it makes no sense to store data in it, especially in memory, if you have no good reason.
, nitpick: - - . - . , md5, sha hashlib, - - .digest() .hexdigest() -.