Log

Author Commit Date CI Message
constantoine 0f0e7d60 2022-10-05T11:55:37 Cargo fmt Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
constantoine 4d9e41ee 2022-10-05T11:45:21 Fix clippy warnings Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
Cléo Rebert fd1ee7f5 2022-10-05T11:27:22 Merge pull request #34 from alexanderkjall/replace-sha-1-with-sha1 replace the sha-1 crate with sha1
Cléo Rebert 48fe98c0 2022-10-05T11:22:21 Merge branch 'replace-sha-1-with-sha1' of github.com:alexanderkjall/totp-rs into replace-sha-1-with-sha1
Alexander Kjäll 27a27d80 2022-10-01T16:54:01 replace the sha-1 crate with sha1, as RustCrypto have migrated to the new crate name, ref https://github.com/RustCrypto/hashes#crate-names
Cléo Rebert fd52f4a6 2022-10-05T11:17:25 Merge pull request #37 from constantoine/raw_canvas Fix QR unit tests
constantoine edf3db02 2022-10-04T16: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>
Alexander Kjäll a9ebfdc6 2022-10-01T16:54:01 replace the sha-1 crate with sha1, as RustCrypto have migrated to the new crate name, ref https://github.com/RustCrypto/hashes#crate-names
Cléo Rebert d0b60892 2022-08-26T10:49:48 Merge pull request #32 from constantoine/coverage Changed coverage tools to better represent coverage
constantoine ec0e7f36 2022-08-26T10:44:46 Fix rust.yml Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
constantoine 28d72bc3 2022-08-26T10:41:36 Download grcov instead of recompiling Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
constantoine 03188bfd 2022-08-26T10:28:45 Changed coverage tools to better represent coverage Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
Cléo Rebert fcd90cf7 2022-08-26T10:02:42 Merge pull request #31 from constantoine/constantoine-patch-1 Update tarpaulin version
Cléo Rebert 65214998 2022-08-26T09:58:28 Update tarpaulin version Tarpaulin is the tool used for coverage
Cléo Rebert 28075451 2022-08-26T09:55:05 Merge pull request #30 from Dev380/patch-1 Fixed spelling in README.md
Dev380 6498e552 2022-08-25T23:47:41 Fixed spelling in README.md It should be "summary" not "summarry"
Cléo Rebert 26416df2 2022-08-13T11:23:03 Fix totp_url export * base32 unexported * Secret comparison is now constant_time
Cléo Rebert 5abd752d 2022-08-09T11:22:36 Merge pull request #28 from constantoine/refinement Make otpauth fields optionnal
constantoine b6295ae8 2022-08-09T11:13:55 Fix doc tests Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
Cléo Rebert 7a3967f9 2022-08-09T11:09:46 Fix Workflow
constantoine 537350ad 2022-08-09T11:06:25 Prepare for release and update Workflow Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
constantoine 994efb72 2022-08-09T11:06:07 Updated README and added a summary with updated examples Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
constantoine cd903afb 2022-08-09T11:05:36 Make otpauth fields only appear with otpauth feature Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
constantoine 0103e7a6 2022-08-09T11:04:11 Add test to secret.rs Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
Cléo Rebert 6b9f13f6 2022-08-08T20:54:16 Merge pull request #25 from steven89/secret Improve secret handling
Steven Salaun 991a07bb 2022-08-08T20:50:09 fix doc example
Steven Salaun ab7bde08 2022-08-08T20:28:51 Merge branch 'master' into secret
Cléo Rebert 2207859e 2022-08-08T20:26:55 Merge pull request #27 from constantoine/error_handling Refactor error handling
constantoine e5f15221 2022-08-08T20:23:24 test formatter Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
Steven Salaun 584b7aa8 2022-08-08T20:19:07 Merge branch 'secret' of github.com:steven89/totp-rs into secret
Steven Salaun 3d61027d 2022-08-08T20:19:04 Change Secret: Plain to Raw & Base32 to Encoded
Steven Salaun ba130aaa 2022-08-08T20:15:31 Merge branch 'master' into secret
constantoine 8e890ac1 2022-08-08T19:52:54 Refactor error handling Closes #23 Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
Cléo Rebert 2cb5ec2b 2022-08-08T17:56:32 Merge pull request #26 from steven89/rfc Rfc6238 struct
Steven Salaun fe2363c7 2022-08-08T17:30:27 TOTP::new checks digits value compliance to rfc
Steven Salaun eb9b0443 2022-08-08T14:17:23 fix build for serde_support feature
Steven Salaun fcfebe14 2022-08-08T14:10:39 clippy
Cléo Rebert f3719db8 2022-08-08T11:44:21 Merge pull request #24 from steven89/ttl add `ttl` to TOTP
Steven Salaun f65a2e84 2022-08-06T23: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
Steven Salaun 3bdb91fa 2022-08-06T22:58:57 clarifies doc for `secret`: should be non-encoded
Steven Salaun 40196c5e 2022-08-06T17:49:40 add `ttl` to TOTP
Steven Salaun 6623af9d 2022-08-06T17:31:11 Rfc6238 struct
Cléo Rebert 181d17ed 2022-06-16T11:56:00 Merge pull request #22 from constantoine/21-bug-issuer-error Fix url related bugs
constantoine 263299be 2022-06-16T11: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>
Cléo Rebert e8ba6fe0 2022-05-30T21:59:27 Merge pull request #20 from constantoine/v2 V2
constantoine 4f32055d 2022-05-20T17:43:39 Add next_step and next_step_current methods Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
constantoine ff6f562a 2022-05-20T15:00:12 The return of otpauth Signed-off-by: constantoine <cleo.rebert@gmail.com>
Cléo Rebert eba97c0f 2022-05-15T13:41:19 Finish work on v2 Signed-off-by: constantoine <cleo.rebert@gmail.com>
constantoine d6d08b1a 2022-05-13T14:06:25 Start working on v2 Signed-off-by: constantoine <cleo.rebert@gmail.com>
constantoine a3b51eea 2022-05-06T15:42:55 Update version Signed-off-by: constantoine <cleo.rebert@gmail.com>
constantoine 1010772c 2022-05-06T15:41:47 Update license Signed-off-by: constantoine <cleo.rebert@gmail.com>
Cléo Rebert 49f672d4 2022-05-06T15:33:51 Merge pull request #19 from wyhaya/master Add TOTP::from_url
wyhaya 905a119c 2022-05-06T20:49:33 Update README
wyhaya 32336698 2022-05-06T20:36:43 Add TOTP::from_url
Cléo Rebert 733c2797 2022-05-06T12:46:00 Merge pull request #18 from constantoine/add_tests Add tests for generate_current and check_current
constantoine 6c192024 2022-05-06T12: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>
Cléo Rebert 2c75d046 2022-05-06T12:10:45 Merge pull request #17 from wyhaya/master Support generating and checking token from the current system time
wyhaya 1e546058 2022-05-06T17:55:31 Add check_current
wyhaya d54f8659 2022-05-06T17:35:49 Support generate token from the current time
constantoine 64225f5a 2022-05-05T12:48:52 Disable image default features Signed-off-by: constantoine <cleo.rebert@gmail.com>
Cléo Rebert 1f10c8c7 2022-05-05T12:10:13 Merge pull request #16 from constantoine/change_qr_lib Switch to qrcodegen, and update image dependency
constantoine 9b541817 2022-05-05T12:03:41 Up version Signed-off-by: constantoine <cleo.rebert@gmail.com>
constantoine bacf1c4f 2022-05-05T11:50:41 Switch to qrcodegen, and update image dependency Signed-off-by: constantoine <cleo.rebert@gmail.com>
Cléo Rebert 7ecdf7d4 2022-04-24T16:48:30 Merge pull request #15 from constantoine/constant_time_eq Add constant-time token comparison and partialEq trait
Cleo Rebert 1f1e1a6f 2022-04-24T16:41:56 Add constant-time token comparison and partialEq trait Add PartialEq for TOTP<T> and PartialEq+Eq for Algorithm
constantoine ba925c24 2022-04-15T15:08:41 Update to 1.0 Signed-off-by: constantoine <cleo.rebert@gmail.com>
Cléo Rebert 0f245d26 2022-04-08T20:31:05 Merge pull request #12 from ironhaven/patch-1 Use last byte of HMAC output for truncating
ironhaven c30d02b5 2022-03-07T23: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.
constantoine d1d6fc04 2022-02-10T11:25:41 Bump version
Cléo Rebert 4ef27bd6 2022-02-10T10:37:40 Merge pull request #11 from tmpfs/doc-comment-warning Warn about silent fallback to SHA1
Cléo Rebert 8db59df6 2022-02-10T10:34:28 Update README.md
muji 9888507d 2022-02-10T17:00:33 Add notes to doc comments.
constantoine 4b486b5a 2022-01-20T17:58:27 Removed byteorder dependency
constantoine 2ed419a8 2022-01-13T21:53:13 Merge branch 'master' of github.com:constantoine/totp-rs
Cléo Rebert b68dd87c 2022-01-13T21:52:55 Hash refactor
Cléo Rebert 79b714ae 2022-01-13T18:33:59 Update README.md
Cléo Rebert f2fb6ae5 2022-01-13T18:33:33 Update security.yml
Cléo Rebert c1116327 2022-01-13T18:26:45 Update security.yml
Cléo Rebert 05253169 2022-01-13T18:19:34 Update rust.yml
Cléo Rebert 4f132441 2022-01-13T18:15:14 Update rust.yml
Cléo Rebert b26322cd 2022-01-13T18:04:12 Update rust.yml
Cléo Rebert 2f864c45 2022-01-13T18:00:02 Update rust.yml
Cléo Rebert 46642989 2022-01-13T17:56:20 Update rust.yml
Cléo Rebert 4e5e605d 2022-01-13T17:52:12 Merge branch 'master' of github.com:constantoine/totp-rs
Cléo Rebert b23080d4 2022-01-13T17:52:06 Add crates.io badge and coverage badge
Cléo Rebert aa1dccb3 2022-01-13T17:41:52 Create security.yml
Cléo Rebert 5a39aa77 2022-01-13T16:52:27 Update rust.yml
Cléo Rebert f78707cb 2022-01-13T16:35:38 0.7.1
Cléo Rebert d75ca4dd 2022-01-13T16:17:19 Changed to 7.0 for 2021 edition
Cléo Rebert 97695cf2 2022-01-13T15:55:04 Updated dependencies, bumped to 2021 edition - Updated sha2 from a yanked version - Updated sha-1 - Updated hmac - Updated byteorder - Updated base64
Cléo Rebert 43107283 2021-08-20T18:59:09 Update README.md
Cléo Rebert 0f59d899 2021-08-20T18:50:56 New version
Cléo Rebert de4a4f91 2021-08-20T18:49:34 Update dependencies
Cléo Rebert 981ad644 2020-11-02T23:21:19 Fixed warning about deprecated type alias
Cleo Rebert 9c84840f 2020-09-12T08:55:35 Bumped Cargo.toml version
Cléo Rebert 8c86a94f 2020-09-12T08:54:07 Merge pull request #8 from evenorog/master Remove some unnecessary to_vec calls in code
evenorog ffe9e4d5 2020-08-09T20:10:44 Remove some unnecessary to_vec calls in code
Cleo Rebert 12cbfc10 2020-08-09T08:36:06 Updated README.md
Cléo Rebert 730a767b 2020-08-09T07:39:53 Bumped version number in README.md
Cleo Rebert b4c1b5d4 2020-08-08T17:21:06 Bumped up major version following PR