linotp.lib.ImportOTP.DPWplain module

Tages Password importer


TODO: What should the serials look like?


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 }