tests/test_util_sasl_scram.lua
changeset 5537 15464633d8fb
parent 3406 748246005893
equal deleted inserted replaced
5531:483f795f6f99 5537:15464633d8fb
     1 
     1 
     2 
     2 
     3 local hmac_sha1 = require "util.hmac".sha1;
     3 local hmac_sha1 = require "util.hashes".hmac_sha1;
     4 local function toHex(s)
     4 local function toHex(s)
     5 	return s and (s:gsub(".", function (c) return ("%02x"):format(c:byte()); end));
     5 	return s and (s:gsub(".", function (c) return ("%02x"):format(c:byte()); end));
     6 end
     6 end
     7 
     7 
     8 function Hi(Hi)
     8 function Hi(Hi)