C# Class cyberh0me.Security.Authentication.OTP

显示文件 Open project: cyberh0me/OTP Class Usage Examples

Private Properties

Property Type Description
Generate string
HmacSha1 byte[]
Revers byte[]

Public Methods

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

Private Methods

Method Description
Generate ( ) : string
HmacSha1 ( byte value ) : byte[]
Revers ( byte src ) : byte[]

Method Details

IsValid() public method

public IsValid ( string totp ) : bool
totp string
return bool

OTP() public method

public OTP ( string key ) : System
key string
return System

QRCode() public method

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