From bf2d753f72d2d0c2bed1f582819db9b5738af61a Mon Sep 17 00:00:00 2001 From: Cleo Rebert Date: Mon, 13 Apr 2020 16:59:30 +0200 Subject: [PATCH] preparations to push to crates.io --- Cargo.toml | 11 ++++++++--- README.md | 6 +++--- src/lib.rs | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 896cd94..3de3583 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,15 @@ [package] -name = "totp" +name = "totp-rs" version = "0.2.0" authors = ["Cleo Rebert "] 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" diff --git a/README.md b/README.md index 23ae2d3..7ae2670 100644 --- a/README.md +++ b/README.md @@ -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" ``` diff --git a/src/lib.rs b/src/lib.rs index 559a384..a224487 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;