Remove useless commented code
Move encryption function to it's own helper
Make TOTP's helper methods non-static