• Home
  • API Documentation
Show / Hide Table of Contents
  • Yort.Otp
    • CounterBasedPasswordGenerator
      • Counter
      • CounterBasedPasswordGenerator
    • IHashAlgorithm
      • ComputeHash
      • Name
    • IOnetimePasswordGenerator
      • GeneratedPassword
      • HashAlgorithm
      • PasswordLength
      • SetSecret
    • MD5HashAlgorithm
      • ComputeHash
      • Name
    • OnetimePasswordAccount
      • Issuer
      • Label
      • Metadata
      • PasswordGenerator
      • Secret
    • OnetimePasswordGeneratorBase
      • Dispose
      • GeneratedPassword
      • HashAlgorithm
      • IsDisposed
      • MovingFactor
      • OnetimePasswordGeneratorBase
      • PasswordLength
      • SetSecret
    • OnetimePasswordGeneratorFactory
      • CreateFactory
      • CreateNewPasswordGenerator
      • FromOtpUrl
      • GetOtpUrl
    • OnetimePasswordSecret
      • FromAscii
      • FromBase32
      • FromHex
      • ToBase32
    • Resource
    • Resource.Attribute
    • Resource.String
      • ApplicationName
      • Hello
    • Sha1HashAlgorithm
      • ComputeHash
      • Name
    • Sha256HashAlgorithm
      • ComputeHash
      • Name
    • Sha512HashAlgorithm
      • ComputeHash
      • Name
    • TimeBasedPasswordGenerator
      • MovingFactor
      • TimeBasedPasswordGenerator
      • TimeInterval
      • Timestamp
      • ValidUntilUtc

Class OnetimePasswordSecret

A static class containing utility methods useful for converting onetime password secrets to and from various formats.

Inheritance
System.Object
OnetimePasswordSecret
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Yort.Otp
Assembly: cs.temp.dll.dll
Syntax
public static class OnetimePasswordSecret

Methods

Name Description
FromAscii(String)

Converts a string containing ASCII characters to a byte array suitable for use as a onetime password secret.

FromAscii(String)

Converts a string containing ASCII characters to a byte array suitable for use as a onetime password secret.

FromBase32(String)

Converts a string containing base 32 characters to a byte array suitable for use as a onetime password secret.

FromBase32(String)

Converts a string containing base 32 characters to a byte array suitable for use as a onetime password secret.

FromHex(String)

Converts a string containing hexadecimal characters to a byte array suitable for use as a onetime password secret.

FromHex(String)

Converts a string containing hexadecimal characters to a byte array suitable for use as a onetime password secret.

ToBase32(Byte[])

Converts a raw secret (in byte array form) to a base 32 string.

Back to top Copyright (c) 2017 Troy Willmot