constantoine / totp-rs

RFC-compliant TOTP implementation with ease of use as a goal and additionnal QoL features.
https://crates.io/crates/totp-rs
MIT License
169 stars 20 forks source link

Add constant-time token comparison and partialEq trait #15

Closed constantoine closed 2 years ago

constantoine commented 2 years ago

Add PartialEq for TOTP and PartialEq+Eq for Algorithm

codecov-commenter commented 2 years ago

Codecov Report

Merging #15 (1f1e1a6) into master (ba925c2) will increase coverage by 0.57%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   97.84%   98.42%   +0.57%     
==========================================
  Files           1        1              
  Lines          93      127      +34     
==========================================
+ Hits           91      125      +34     
  Misses          2        2              
Impacted Files Coverage Δ
src/lib.rs 98.42% <100.00%> (+0.57%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ba925c2...1f1e1a6. Read the comment docs.