Implemented HOTP generator.