• 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

Method SetSecret

SetSecret(Byte[])

Sets the secret used to generate passwords.

Declaration
public void SetSecret(byte[] secret)
Parameters
Type Name Description
System.Byte[] secret

A byte array containing the secret value used with the HashAlgorithm to generate onetime passwords.

Remarks

If the instance was constructed with the eraseSecrets argument set to true, any existing secret will be overwritten in memory with zeros.

SetSecret(Byte[])

Sets the secret used to generate passwords.

Declaration
public void SetSecret(byte[] secret)
Parameters
Type Name Description
System.Byte[] secret

A byte array containing the secret value used with the HashAlgorithm to generate onetime passwords.

Remarks

If the instance was constructed with the eraseSecrets argument set to true, any existing secret will be overwritten in memory with zeros.

Back to top Copyright (c) 2017 Troy Willmot