Time and event based one time passcode generator library