Commit Graph

14 Commits

Author SHA1 Message Date
Michael Pfaff 542ed7c97f
Allow use without allocation, decouple issuer and account_name from otpauth feature 2023-04-29 13:39:17 -04:00
Cléo REBERT e4e055dedd
5.0
Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
2023-03-28 10:47:52 +02:00
Cléo REBERT d54bd9e447
chore(FLOW-2123): Add examples
Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
2023-01-06 14:35:18 +01:00
Cléo Rebert cf6029aaf3
Drop generic support 2022-12-22 16:53:41 +01:00
muji 28ebb0e97c
Support zeroize feature. 2022-11-02 11:14:18 +08:00
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