Add sparkey.hash and sparkey.hashSync

See #1.