linotp.lib.ImportOTP.DPWplain module

Tages Password importer

linotp.lib.ImportOTP.DPWplain.checkserial(serial)[source]

TODO: What should the serials look like?

linotp.lib.ImportOTP.DPWplain.parseDPWdata(data)[source]

This function parses data of a file containing the secrets for Tagespasswort-Tokens

each line in the file has the format serial <whitespace> secret

the serial is checked for matching. If the serial does not match, the line is not imported

It returns a dictionary of
serial : { hmac_key , type }