C# Class cyberh0me.Security.Authentication.OTP

Afficher le fichier Open project: cyberh0me/OTP Class Usage Examples

Private Properties

Свойство Type Description
Generate string
HmacSha1 byte[]
Revers byte[]

Méthodes publiques

Méthode Description
IsValid ( string totp ) : bool
OTP ( string key ) : System
QRCode ( string key, string label, int width = 150, int height = 150 ) : WriteableBitmap

Private Methods

Méthode Description
Generate ( ) : string
HmacSha1 ( byte value ) : byte[]
Revers ( byte src ) : byte[]

Method Details

IsValid() public méthode

public IsValid ( string totp ) : bool
totp string
Résultat bool

OTP() public méthode

public OTP ( string key ) : System
key string
Résultat System

QRCode() public méthode

public QRCode ( string key, string label, int width = 150, int height = 150 ) : WriteableBitmap
key string
label string
width int
height int
Résultat Windows.UI.Xaml.Media.Imaging.WriteableBitmap