Simba_TFA_Provider_totp D

Total Complexity 178
Dependencies 4
Dependents 1
Total lines 1,031
Lines of code 565
Logical lines of code 387
Comment lines 233
Methods 39
Properties 12

Methods 39

Method Rating Maintainability Complexity Lines of code
check_code_for_user()
B
42 16 48
current_codes_box()
A
35 12 89
admin_init()
A
54 13 18
potentially_port_private_keys()
A
48 10 32
potentially_encrypt_private_keys()
A
46 8 39
decrypt()
A
57 9 14
add_footer()
S
59 8 11
print_private_keys()
S
54 7 19
get_emergency_codes_as_string()
S
54 7 18
encryptString()
S
60 6 11
generateOTP()
S
58 5 15
reset_private_key_and_emergency_codes()
S
57 5 15
advanced_settings_box()
S
51 4 28
translation_strings()
S
58 4 14
generate_otps_for_login_check()
S
58 4 14
print_algorithm_choice_radios()
S
60 4 11
encrypt()
S
64 4 8
get_iv_size()
S
65 4 8
get_user_otp_algorithm()
S
68 4 6
print_default_hmac_radios()
S
63 4 8
reset_link()
S
63 4 8
check_possible_reset()
S
69 4 6
randString()
S
59 3 14
tfa_show_hotp_off_sync_message()
S
57 2 17
plugins_loaded()
S
64 3 8
current_otp_code()
S
63 3 9
decryptString()
S
62 3 9
changeUserAlgorithmTo()
S
62 2 11
__construct()
S
63 2 10
getUserCounter()
S
73 2 4
addPrivateKey()
S
64 2 9
get_current_code()
S
71 2 5
tfa_qr_code_url()
S
67 2 6
getPrivateKeyPlain()
S
73 1 5
were_settings_saved()
S
82 1 3
hashAndBin()
S
71 1 5
hash()
S
75 1 4
refresh_current_otp_link()
S
78 1 3
setUserHMACTypes()
S
81 1 3