thodg/totp-rs/src

Branch :


Log

Author Commit Date CI Message
aad5f9aa 2023-07-15 19:28:06 Remove unnecessary alloc and add docs.
cf8c0651 2023-05-15 14:57:12 fix(#58): Fix overflow Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
c2ba6d19 2023-03-28 10:58:39 Replace deprecated base64 call Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
e4e055de 2023-03-28 10:47:52 5.0 Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
5f676dd3 2023-01-13 20:24:36 Only add digits and algorithm parameters to URL for non default values
d2c6ae62 2023-01-12 14:22:12 Fix unit tests for get_url change
d866af6b 2023-01-12 14:10:13 Add period to URL if value is not default
aa719c5d 2023-01-12 14:09:37 Simplify parameter handling in URL generation, fix invalid step in tests
1a64130e 2023-01-14 13:07:27 Decode account name before splitting issuer and account name parts
d54bd9e4 2023-01-06 14:35:18 chore(FLOW-2123): Add examples Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
cc1474a7 2023-01-06 11:30:24 chore(FLOW-2123): Fix tests Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
5e61d154 2023-01-05 17:14:06 Do not prefix Steam TOTP account name with Steam
068b746a 2023-01-04 16:20:38 Parse otpauth URL with Steam as issuer as Steam TOTP
3f7f9129 2023-01-03 18:36:35 Generate proper URLs for Steam algorithm
c5fd8207 2023-01-03 18:49:47 Add TOTP::new_steam as custom provider
a5b97d1f 2023-01-02 21:55:49 Add Steam algorithm behind 'steam' feature
d2930683 2023-01-03 17:55:34 Add issue and account name colon check back, fix unchecked doctests
39e0d16d 2023-01-03 11:58:59 Add TOTP::from_url_unchecked variant with uses TOTP::new_unchecked
505569fa 2023-01-03 11:52:43 Remove issuer and account name colon check in TOTP::new method
6bdbd591 2023-01-03 11:49:10 Add TOTP::new_unchecked methods
cf017a9b 2022-12-22 17:06:52 Zeroize secret
cf6029aa 2022-12-22 16:53:41 Drop generic support
608b6f28 2022-12-22 16:40:19 Merge pull request #40 from tmpfs/zeroize Support zeroize feature.
fb9ada36 2022-11-02 11:33:26 cargo fmt Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
d901803c 2022-11-02 11:32:10 Better error handling -Implement Display for TOTP -Make get_qr() Error type be a string Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
d241e00f 2022-11-02 11:29:04 Implement std::error::Error for totp-rs error types Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
28ebb0e9 2022-11-02 11:14:18 Support zeroize feature.
0f917c4a 2022-10-10 11:15:57 Fix warning Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
0131d7e0 2022-10-10 11:12:44 Cargo fmt Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
60514fde 2022-10-10 11:08:40 Add tests Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
9a202c20 2022-10-10 10:34:52 Fix coverage for secret.rs Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
b308f745 2022-10-10 10:22:52 Add tests for secret.rs Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
3f39b3a1 2022-10-05 17:32:31 Add coverage for rfc.rs Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
0f0e7d60 2022-10-05 11:55:37 Cargo fmt Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
4d9e41ee 2022-10-05 11:45:21 Fix clippy warnings Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
edf3db02 2022-10-04 16:41:50 Add raw canvas private method in order to test the canvas raw data, and not the encoded png data Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
26416df2 2022-08-13 11:23:03 Fix totp_url export * base32 unexported * Secret comparison is now constant_time
b6295ae8 2022-08-09 11:13:55 Fix doc tests Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
cd903afb 2022-08-09 11:05:36 Make otpauth fields only appear with otpauth feature Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
0103e7a6 2022-08-09 11:04:11 Add test to secret.rs Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
991a07bb 2022-08-08 20:50:09 fix doc example
ab7bde08 2022-08-08 20:28:51 Merge branch 'master' into secret
e5f15221 2022-08-08 20:23:24 test formatter Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
584b7aa8 2022-08-08 20:19:07 Merge branch 'secret' of github.com:steven89/totp-rs into secret
3d61027d 2022-08-08 20:19:04 Change Secret: Plain to Raw & Base32 to Encoded
ba130aaa 2022-08-08 20:15:31 Merge branch 'master' into secret
8e890ac1 2022-08-08 19:52:54 Refactor error handling Closes #23 Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
2cb5ec2b 2022-08-08 17:56:32 Merge pull request #26 from steven89/rfc Rfc6238 struct
fe2363c7 2022-08-08 17:30:27 TOTP::new checks digits value compliance to rfc
eb9b0443 2022-08-08 14:17:23 fix build for serde_support feature
fcfebe14 2022-08-08 14:10:39 clippy
f65a2e84 2022-08-06 23:04:50 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
3bdb91fa 2022-08-06 22:58:57 clarifies doc for `secret`: should be non-encoded
40196c5e 2022-08-06 17:49:40 add `ttl` to TOTP
6623af9d 2022-08-06 17:31:11 Rfc6238 struct
263299be 2022-06-16 11:48:34 Fix url related bugs * Bug where your issuer would be incorrectly prefixed with a /, and comparison with the issuer parameter would fail * Bug where the issuer and account name in path would not be correctly url decoded in path, but correctly decoded in url query Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
4f32055d 2022-05-20 17:43:39 Add next_step and next_step_current methods Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
ff6f562a 2022-05-20 15:00:12 The return of otpauth Signed-off-by: constantoine <cleo.rebert@gmail.com>
eba97c0f 2022-05-15 13:41:19 Finish work on v2 Signed-off-by: constantoine <cleo.rebert@gmail.com>
d6d08b1a 2022-05-13 14:06:25 Start working on v2 Signed-off-by: constantoine <cleo.rebert@gmail.com>
32336698 2022-05-06 20:36:43 Add TOTP::from_url
6c192024 2022-05-06 12:41:30 Add tests for generate_current and check_current Also updated docs to reflect those changes Signed-off-by: constantoine <cleo.rebert@gmail.com>
1e546058 2022-05-06 17:55:31 Add check_current
d54f8659 2022-05-06 17:35:49 Support generate token from the current time
bacf1c4f 2022-05-05 11:50:41 Switch to qrcodegen, and update image dependency Signed-off-by: constantoine <cleo.rebert@gmail.com>
1f1e1a6f 2022-04-24 16:41:56 Add constant-time token comparison and partialEq trait Add PartialEq for TOTP<T> and PartialEq+Eq for Algorithm
c30d02b5 2022-03-07 23:10:31 Use last byte of HMAC output for truncating This is to use the least significant byte of the HMAC regardless of size. RFC 6328 (TOTP) Section 1.2 says you can use SHA-1 SHA-256 or SHA-512 with the same algorithm of RFC 4226 (HTOP). This seems ok until you realize that all the new HMACs have different output sizes and HTOP only expects a 20 byte fixed MAC. It is not completely clear if RFC 4226 Section 5.3 means "get the bottom 4 bits from byte at offset 19" or "get the 4 least significant bits". Other implementations (https://github.com/pyauth/pyotp/blob/6568c1a83af8e0229f3c4b28d03552d601e2b7fe/src/pyotp/otp.py#L28) and Wikipedia read the "Dynamic Truncation" algorithm to be the last 4 bits of the MAC, so I think this implementation should follow the others.
9888507d 2022-02-10 17:00:33 Add notes to doc comments.
4b486b5a 2022-01-20 17:58:27 Removed byteorder dependency
b68dd87c 2022-01-13 21:52:55 Hash refactor
97695cf2 2022-01-13 15:55:04 Updated dependencies, bumped to 2021 edition - Updated sha2 from a yanked version - Updated sha-1 - Updated hmac - Updated byteorder - Updated base64
981ad644 2020-11-02 23:21:19 Fixed warning about deprecated type alias
ffe9e4d5 2020-08-09 20:10:44 Remove some unnecessary to_vec calls in code
61fc8952 2020-08-05 13:24:34 Be generic over secret type Allow to store anything that implement AsRef<[u8]> as secret in TOTP struct.
d7f87902 2020-07-03 14:34:58 Optionnal serde support for smaller builds
2c12f476 2020-06-22 16:16:05 * Changed version to 0.4.0 and updated docs
66ef16fb 2020-06-22 16:09:53 * Added unit tests, replaced String for &str and removed println
bb9b5d85 2020-06-21 19:08:52 Fixed documentation
64faae59 2020-06-21 16:39:00 Changed a bunch of to_string() to to_owned()
9746793f 2020-06-21 16:03:39 delete test file
32b618c8 2020-06-21 15:57:16 Additional feature!
bba8e818 2020-06-16 14:39:08 Switched from ring to the RustCrypto project
0c19a359 2020-04-25 19:20:11 Changed dependencies + removed one
90644042 2020-04-14 12:51:22 Implemented serialize and clone fot both TOTP and Algorithm. Only Algorithm is copy
c9b81c70 2020-04-13 22:57:06 Better doc with examples
8a236fbd 2020-04-13 18:09:02 fixed typo
7876ca57 2020-04-13 17:59:04 exported fields to export documentation
6b091b7e 2020-04-13 17:02:00 cargo fmt
bf2d753f 2020-04-13 16:59:30 preparations to push to crates.io
e4915a64 2020-04-13 16:39:57 Finally, my own library. With a fix on the QR code generation
d1e04d7c 2020-04-11 21:24:50 First commit