A slightly modified version of the code which was taken from https://www.medo64.com/2015/02/one-time-passwords-in-csharp/
Gives more options and is slightly recatored to allow playing with the different options for 2 pass auth.
All credit goes to Josip Medved jmedved@jmedved.com for the original code