Skip to content

A Go HTTP program to generate MFA codes from a stored secret key and can also add a new MFA key. MFA keys are encrypted and the user's password is hashed and salted.

License

Notifications You must be signed in to change notification settings

ellwould/mfa-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MFA View

A Go HTTP program to generate MFA codes from a stored secret key and can also add a new MFA key.

MFA keys are encrypted and the user's password is hashed and salted.

(Built using operating system - Ubuntu 22.04.5 LTS)



Access demo site at https://mfa.ell.today

Demo username is: demo@ell.today

Demo password is: passwordpasswordpassword1$

Demo 2FA secret key is: IHJU2OCCJCGAH5CMTSIBPU66SVLDVIRV

or scan the QR code below for secret key



MFA View can be installed easily with the BASH script - install-mfaview.sh

MFA View can be un-installed easily with the BASH script - uninstall-mfaview.sh


Website:

Login page:

image

Logging in with no MFA accounts present:

image

Adding a MFA acount:

(In this example I generated a random secret key for the purpose of demonstrating - V2J6E2BTG3LPGRWB63CVCKXXRGENYS3K)

image

Logging in with a MFA account present:

(Java Script used to create a copy to clipboard button)

image

Screenshot of he mfaview-key.csv file (located in /etc/mfaview/key) showing the secret key is encrypted:

(AES encryption used)

image

Add MFA account page switched off in the configuration file:

image

Examples of validation on the login page:

image

image

image


CLI:

Adding an email address:

(demo@ell.today was used)

image

Adding a password:

(Easy example password used was passwordpasswordpassword1$):

image

Generating a 2FA secret key:

(Secret key generated - IHJU2OCCJCGAH5CMTSIBPU66SVLDVIRV)

image

2FA secret key embedded inside a Quick Response (QR) code for a 3rd party authenticator app to scan:

image

3rd party application generating 2FA code:

image

MFA View checks the 2FA code generated from a 3rd party authenticator app is correct before adding the secret key to the configuration file:

image

MFA View informing the user the 2FA secret key has been added to the configuration file:

image

Example of configuration file (password is hashed and salted):

image

Systemd after MFA View was installed but before account setup:

image

Systemd after account setup is complete:

image

Examples of validation when creating an account:

image

image


Note

For a list of abbreviations and there meanings used throughout this repository please refer to this README


Important

All third-party product and/or company names and logos are trademarks™ or registered® trademarks and remain the property of their respective holders/owners. Unless specifically identified as such, use of third party trademarks does not imply any affiliation with or endorsement between Elliot Michael Keavney and the owners of those trademarks.

About

A Go HTTP program to generate MFA codes from a stored secret key and can also add a new MFA key. MFA keys are encrypted and the user's password is hashed and salted.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published