totp-rs/Cargo.toml

31 lines
1.0 KiB
TOML
Raw Normal View History

2020-04-11 15:24:50 -04:00
[package]
2020-04-13 10:59:30 -04:00
name = "totp-rs"
version = "0.4.0"
2020-04-11 15:24:50 -04:00
authors = ["Cleo Rebert <cleo.rebert@gmail.com>"]
edition = "2018"
2020-04-13 10:59:30 -04:00
readme = "README.md"
license = "MIT"
2020-06-21 09:57:16 -04:00
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. With additional feature \"qr\", you can use it to generate a base64 png qrcode."
2020-04-13 10:59:30 -04:00
repository = "https://github.com/constantoine/totp-rs"
homepage = "https://github.com/constantoine/totp-rs"
keywords = ["authentification", "2fa", "totp", "hmac"]
categories = ["authentication", "web-programming"]
2020-04-11 15:24:50 -04:00
2020-06-21 13:08:52 -04:00
[package.metadata.docs.rs]
features = [ "qr" ]
2020-06-21 09:57:16 -04:00
[features]
default = []
qr = ["qrcode", "image", "base64"]
2020-04-11 15:24:50 -04:00
[dependencies]
serde = { version = "1.0", features = ["derive"] }
sha2 = "0.9.0"
sha-1 = "0.9.0"
hmac = "0.8.0"
2020-04-25 13:20:11 -04:00
byteorder = ">= 1.3"
base32 = ">= 0.4"
2020-06-21 09:57:16 -04:00
qrcode = { version = ">= 0.12", optional = true }
image = { version = ">= 0.23", optional = true}
base64 = { version = ">= 0.12", optional = true }