Skip to content

TOTP SHA256/512 possible? #177

@hvisage

Description

@hvisage

Busy working with Kanidm https://kanidm.com/ and it uses (as I've started to notice elsewhere too) SHA256... and I've seen references to SHA512 TOTPs too. Elsewhere I've noticed 8 digits option too.

Is there enough code space for SHA256? and 512?
What would be required to implement?

Example Config string from Kanidm credential settings page

otpauth://totp/Envisage%20Cloud%20Solutions:hv?secret=YBO5RLEX4O5PTWIOKTHNGZDDNK7R7WPYIXMAUC324YUX4OYK3G4Q&issuer=Envisage%20Cloud%20Solutions&algorithm=SHA256&digits=6&period=30

TOTP details

  • Secret: YBO5RLEX4O5PTWIOKTHNGZDDNK7R7WPYIXMAUC324YUX4OYK3G4Q
  • Algorithm: SHA256
  • Time Steps: 30 sec
  • Code size: 6 digits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions