9951 explained code solutions for 126 technologies


nginx-luaCalculating crc32


server {
  location / {
    content_by_lua_block {
      local sign = ngx.crc32_long('Hi all')
    }
  }
}ctrl + c
ngx.crc32_long

returns crc32 for specified string

'Hi all'

string to calculate crc32 for

sign

this variable will store generated crc32

content_by_lua_block

nginx-lua module directive to specify block of Lua code