SwiftOTP icon indicating copy to clipboard operation
SwiftOTP copied to clipboard

A Swift library for generating One Time Passwords (OTP)

Results 8 SwiftOTP issues
Sort by recently updated
recently updated
newest added

Travis CI was already getting long in the tooth, but after this week's [OAuth token breach](https://github.blog/2022-04-15-security-alert-stolen-oauth-user-tokens/), it's time to move.

Adopted `Equatable` in `TOTP` and `HOTP`, relying on automatic synthesis of the protocol’s requirements.

When I am trying to build a watchOS app using this library everything is working fine but after the upload to the App Store I get the following error as...

- `generateOTP(secret: Data, algorithm: OTPAlgorithm = .sha1, counter: UInt64, digits: Int = 6) -> String` was returning `String?` but there wasn't a way in which it could return `nil` -...

Replace nil values with error handling in OTP generate part, and unit tests.

As per Apple's published document https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api Will SwiftOTP providing a privacy manifest file for the iOS SDK?

Make 'hmac' a constant by using definite initialization.