Skip to content

Length of secret? #8

@jbostoen

Description

@jbostoen

Am I missing something?

I'm looking to migrate a project from an outdated authenticator library to chillerlan/php-authenticator.

From the read me:

// -> otpauth://totp/my%20label?secret=NKSOQG7UKKID4IXW&issuer=chillerlan.net&digits=6&period=30&algorithm=SHA1

So it seems the secret can still be 16 characters.

However, when I set the secret length to 16; and generate a secret using the createSecret() method; I get an output of 26 characters?
E.g. JVD6M43FQR6XBTRB6GTPU27VNM

Am I missing something or am I confused somewhere?

I'd like to re-use the existing secrets for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions