public byte[] GetQRCode(string issuer, string accountTitleNoSpaces, string accountSecretKey, bool secretIsBase32 = false, int QRPixelsPerModule = 3) { TwoFactorAuthenticator tfA = new TwoFactorAuthenticator(); var image = tfA.GenerateSetupCodeImage(issuer, accountTitleNoSpaces, accountSecretKey, secretIsBase32, QRPixelsPerModule); return(image); }
public byte[] GetQRCode(string accountSecretKey, bool secretIsBase32 = false, int QRPixelsPerModule = 3) { var issuer = "www.morenote.top"; var accountTitleNoSpaces = "www.morenote.top"; //todo:自定义issuer和accountTitleNoSpaces TwoFactorAuthenticator tfA = new TwoFactorAuthenticator(); var image = tfA.GenerateSetupCodeImage(issuer, accountTitleNoSpaces, accountSecretKey, secretIsBase32, QRPixelsPerModule); return(image); }