Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }