[LuaCrypto](https://github.com/mkottman/luacrypto) already provides SHA1 hashing at raw C speed. It is based on openssl though. If interested I can take the burden of the integration into lua-websocket.