 <p>One of the alternative ways you can do that (if you actually care much about space) is to store the hash in the binary form. Some details of how to do that may be found <a href="http://stackoverflow.com/questions/17/binary-data-in-mysql">here</a>; you'd probably want BINARY(32) for a SHA-256 hash.</p>