Implemented TOTP generator.