• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yitsushi / totp-cli / 13551448062
27%
master: 20%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/golang.org/x/crypto-0.45.0
DEFAULT BRANCH: master
Ran 26 Feb 2025 07:05PM UTC
Jobs 1
Files 25
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Feb 2025 07:04PM UTC coverage: 28.409% (-1.8%) from 30.181%
13551448062

push

github

web-flow
feat: add sha256 and sha512 support (#135)

* feat: add sha256 and sha512 support

As the original implementation followed only RFC-4226, it had only SHA1
support. This covers a lot of tokens, but secure tokens are not SHA1, but
SHA2 based as described in RFC-6238.

Until now, I though only hardware tokens use SHA2 (SHA256, SHA512) and
maybe some edge cases, but not common. That was probably true almost 10
years ago when I originally created this tool. Today, even tho I didn't
see 256 or 512 tokens yet, I think it's more common, and soon they will
be used in a lot of places.

Resolves #133

References:
- https://github.com/yitsushi/totp-cli/issues/133
- https://www.ietf.org/rfc/rfc4226.txt
- https://www.ietf.org/rfc/rfc6238.txt

Signed-off-by: Victoria Nadasdi <victoria@efertone.me>

2 of 124 new or added lines in 13 files covered. (1.61%)

3 existing lines in 1 file now uncovered.

300 of 1056 relevant lines covered (28.41%)

2.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% internal/cmd/import.go
1
0.0
0.0% internal/cmd/set_prefix.go
2
0.0
0.0% internal/cmd/dump.go
2
0.0
0.0% internal/cmd/generate.go
3
0.0
internal/security/algo/sha1.go
3
0.0
internal/security/algo/sha256.go
3
0.0
internal/security/algo/sha512.go
6
0.0
0.0% internal/cmd/error.go
10
0.0
0.0% internal/cmd/add_token.go
12
0.0
0.0% internal/cmd/generatehelper.go
13
0.0
0.0% internal/cmd/instant.go
66
0.0
internal/cmd/flags.go

Uncovered Existing Lines

Lines Coverage ∆ File
3
0.0
0.0% internal/cmd/instant.go
Jobs
ID Job ID Ran Files Coverage
1 13551448062.1 26 Feb 2025 07:05PM UTC 25
28.41
GitHub Action Run
Source Files on build 13551448062
  • Tree
  • List 25
  • Changed 9
  • Source Changed 9
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13551448062
  • 28337f38 on github
  • Prev Build on main (#13550145801)
  • Next Build on main (#13553954774)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc