On Wed, Mar 20, 2013 at 8:13 AM, alain meunier wrote:
> I would like to know wether openresty enables me to do that :
> Say that my url is : http://www.mydomain.com/helloworld.html.
> Say I set a variable value "hello world".
> set $s "hello world"
> How could I hash $s and split it into the caracters ?
> If my hash is 15A5F3456...
> then $s would be 1, $s would be 5, $s would be A and so on.
> How could I do that with openresty ?
You can certainly do that in Lua via the ngx_lua module in the openresty bundle:
See also the Lua reference manual:
BTW, English posts are recommended to send to the openresty-en mailing
list: https://groups.google.com/group/openresty-en As you can tell,
the current list is a Chinese one.
Also, please remember subscribing to the list before posting,
otherwise your posts will always require manual moderation. Thank you
for your cooperation.