antirez/redis — pull request #410 by fritzy (2012-03-28 18:13:42+00:00)
Title: added redis.sha1hex(string) as lua scripting function

I'd like to easily hash strings in Redis's Lua scripting for things like password storage and comparison. Since scripting.c had the hashScript function handy, this was a reasonably simple mapping.

Please consider this for Redis 2.6 or 2.6.1.