6.1.1.3.2.11. linotp.lib.feitian module

This module can be used to create the optical challenge image for Feitian

c601 token.

c601: Either you can create a single challenge that will display the OTP response

calculate_optical_data(value=”12345678”)
or you can split the challenge into ACCOUNT and AMOUNT.
calculate_optical_data(value=”12345”, type=ACCOUNT) calculate_optical_data(value=”67890”, type=AMOUNT)

The challenge then will be AMOUNT+ACCOUNT (6789012345)

linotp.lib.feitian.calculate_optical_data(value='', type=[0, 1])[source]

create an array, representing black and white (1 and 0)

type
0,1 : Default challenge 1,1 : Account 1,0 : Amount
value
Input challenge Data: A numerical string