Jump to content

2FA decryption (on new update)


Joo32

Recommended Posts

Hi,

WHMCS used to store the 2FA (second_factor_config) on database like {secret: ABC123XYZ backupkey: 654321} for each account.
After v8 (I guess) it store all new 2FA like a hash:

9d01772452f8d51b51458d3f0c2816e752ab71075626b92cc8ca425d85f6442jlkfdljksdfljkfsdljkjlksfdjlkfdsjlkfsdjk600248fb22cee586b55ee15f68bfe9600e507fa9fb62ffbccce0c0c80e5e95eaf8f6de61e5362074ab47c974b5ef0cbcc88782b91c33d364a05adcksdjhfhkshdkhfksdhjk


Also, old keys({secret: ABC123XYZ backupkey: 654321}) turn to the new method when customers log in.

I wonder how we can validate/decrypt/encrypt this code for third-party app logins.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated