constantoine
0f0e7d6032
Cargo fmt
...
Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
2022-10-05 11:55:37 +02:00
constantoine
cd903afbd7
Make otpauth fields only appear with otpauth feature
...
Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
2022-08-09 11:05:36 +02:00
Steven Salaun
584b7aa8a7
Merge branch 'secret' of github.com:steven89/totp-rs into secret
2022-08-08 20:19:07 +02:00
Steven Salaun
3d61027d52
Change Secret: Plain to Raw & Base32 to Encoded
2022-08-08 20:19:04 +02:00
Steven Salaun
ba130aaafc
Merge branch 'master' into secret
2022-08-08 20:15:31 +02:00
Cléo Rebert
2cb5ec2b7a
Merge pull request #26 from steven89/rfc
...
Rfc6238 struct
2022-08-08 17:56:32 +02:00
Steven Salaun
f65a2e840a
add `Secret` enum & `gen_secret` feature
...
- Make the distinction between encoded/non-encoded secret clear,
and allows for easy transformation betwen the two formats
- add `gen_secret` feature to allow easy generation of CSPRNG secret,
also add function to generate rfc recommended length secret
2022-08-06 23:04:50 +02:00
Steven Salaun
40196c5ed9
add `ttl` to TOTP
2022-08-06 17:49:40 +02:00
Steven Salaun
6623af9d3e
Rfc6238 struct
2022-08-06 17:31:11 +02:00