preparations to push to crates.io

This commit is contained in:
Cleo Rebert 2020-04-13 16:59:30 +02:00
parent 30ac2766f0
commit bf2d753f72
3 changed files with 12 additions and 7 deletions

View File

@ -1,10 +1,15 @@
[package]
name = "totp"
name = "totp-rs"
version = "0.2.0"
authors = ["Cleo Rebert <cleo.rebert@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
readme = "README.md"
license = "MIT"
description = "This library permits the creation of 2FA authentification tokens per TOTP, the verification of said tokens, with configurable time skew, validity time of each token, algorithm and number of digits."
repository = "https://github.com/constantoine/totp-rs"
homepage = "https://github.com/constantoine/totp-rs"
keywords = ["authentification", "2fa", "totp", "hmac"]
categories = ["authentication", "web-programming"]
[dependencies]
ring = "0.16.12"

View File

@ -1,11 +1,11 @@
# totp-rs
This library permits the creation of authentification tokens per TOTP, the verification of said tokens, with configurable time skew, validity time of each token, algorithm and number of digits!
This library permits the creation of 2FA authentification tokens per TOTP, the verification of said tokens, with configurable time skew, validity time of each token, algorithm and number of digits!
## How to use
Add it to your `Cargo.toml`:
```toml
[dependencies.totp]
git = "https://github.com/constantoine/totp-rs"
[dependencies]
totp-rs = "0.2.0"
```

View File

@ -1,4 +1,4 @@
//! This library permits the creation of authentification tokens per TOTP, the verification of said tokens, with configurable time skew, and validity time of each toke, algorithm and number of digits!
//! This library permits the creation of 2FA authentification tokens per TOTP, the verification of said tokens, with configurable time skew, validity time of each token, algorithm and number of digits!
use base32;
use ring::hmac;