Comparison

util/sasl/scram.lua @ 3097:9341ef1a3345

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 3096:e69282792686
child 3098:e5d349c0acde
comparison
equal deleted inserted replaced
3096:e69282792686 3097:9341ef1a3345
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