Comparison

util/sasl/scram.lua @ 2993:06d06fdd190b

util.sasl.scram: Adding documentation on SCRAM authentication backend.
author Tobias Markmann <tm@ayena.de>
date Sun, 28 Feb 2010 22:42:53 +0100
parent 2990:21933063dd9f
child 2995:175002d404b8
comparison
equal deleted inserted replaced
2992:9ce36f7eb24a 2993:06d06fdd190b
26 26
27 module "scram" 27 module "scram"
28 28
29 --========================= 29 --=========================
30 --SASL SCRAM-SHA-1 according to draft-ietf-sasl-scram-10 30 --SASL SCRAM-SHA-1 according to draft-ietf-sasl-scram-10
31
32 --[[
33 Supported Authentication Backends
34
35 scram-{MECH}:
36 function(username, realm)
37 return salted_password, iteration_count, salt, state;
38 end
39 ]]
40
31 local default_i = 4096 41 local default_i = 4096
32 42
33 local function bp( b ) 43 local function bp( b )
34 local result = "" 44 local result = ""
35 for i=1, b:len() do 45 for i=1, b:len() do