Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chardoncs committed Feb 9, 2024
1 parent d710d78 commit 0546db7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ License: MIT or Apache-2.0
Add `minotp` into your project.

```bash
cargo add minotp
cargo add minotp@1
```

Also the hash you want (e.g., SHA1).
Also all hash libraries you want (e.g., SHA1 of [Rust Crypto](https://github.com/RustCrypto)).

```bash
cargo add sha1
Expand All @@ -33,7 +33,7 @@ let totp = Totp::<Sha1>::from_bytes(secret, COMMON_INTERVAL).unwrap();
// Get remaining seconds
let _remaining_seconds = totp.remaining_sec();

// Get token
// Get token as a 6-digit owned string
let _token = totp.gen_6_str();

// -- snip -- //
Expand All @@ -60,6 +60,6 @@ let _token = totp.gen_6_str();
// -- snip -- //
```

## Find any bug?
## Found any bug?

~~You must be kidding.~~ Fire an issue right now if you find one!
~~You must be kidding.~~ Fire an issue right now if you found one!

0 comments on commit 0546db7

Please sign in to comment.