Mask 2fa inputs

Masks after 12 characters to preserve identifier.

Not sure if it works on windows, so keep the old behavior on windows
Merge pull request #1253 from will/mask-2fa

Mask 2fa inputs