diff --git a/MFACodeGenerator.MAUI/App.xaml b/MFACodeGenerator.MAUI/App.xaml
new file mode 100644
index 0000000..783256d
--- /dev/null
+++ b/MFACodeGenerator.MAUI/App.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MFACodeGenerator.MAUI/App.xaml.cs b/MFACodeGenerator.MAUI/App.xaml.cs
new file mode 100644
index 0000000..e8f82bb
--- /dev/null
+++ b/MFACodeGenerator.MAUI/App.xaml.cs
@@ -0,0 +1,12 @@
+namespace MFACodeGenerator.MAUI
+{
+ public partial class App : Application
+ {
+ public App()
+ {
+ InitializeComponent();
+
+ MainPage = new AppShell();
+ }
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/AppShell.xaml b/MFACodeGenerator.MAUI/AppShell.xaml
new file mode 100644
index 0000000..3d8c377
--- /dev/null
+++ b/MFACodeGenerator.MAUI/AppShell.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
diff --git a/MFACodeGenerator.MAUI/AppShell.xaml.cs b/MFACodeGenerator.MAUI/AppShell.xaml.cs
new file mode 100644
index 0000000..cf4aae7
--- /dev/null
+++ b/MFACodeGenerator.MAUI/AppShell.xaml.cs
@@ -0,0 +1,10 @@
+namespace MFACodeGenerator.MAUI
+{
+ public partial class AppShell : Shell
+ {
+ public AppShell()
+ {
+ InitializeComponent();
+ }
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/MFACodeGenerator.MAUI.csproj b/MFACodeGenerator.MAUI/MFACodeGenerator.MAUI.csproj
new file mode 100644
index 0000000..3d179f1
--- /dev/null
+++ b/MFACodeGenerator.MAUI/MFACodeGenerator.MAUI.csproj
@@ -0,0 +1,56 @@
+
+
+
+ net6.0-maccatalyst
+ $(TargetFrameworks);net6.0-windows10.0.19041.0
+
+
+ Exe
+ MFACodeGenerator.MAUI
+ true
+ true
+ enable
+
+
+ TOTP MFA Code Generator
+
+
+ ca.v10networks.mfacodegenerator.maui
+ ED21101C-8443-4102-B59C-482E95B6D974
+
+
+ 1.0
+ 1
+
+ 14.2
+ 14.0
+ 21.0
+ 10.0.17763.0
+ 10.0.17763.0
+ 6.5
+ AnyCPU
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MFACodeGenerator.MAUI/MainPage.xaml b/MFACodeGenerator.MAUI/MainPage.xaml
new file mode 100644
index 0000000..2725699
--- /dev/null
+++ b/MFACodeGenerator.MAUI/MainPage.xaml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MFACodeGenerator.MAUI/MainPage.xaml.cs b/MFACodeGenerator.MAUI/MainPage.xaml.cs
new file mode 100644
index 0000000..3ff6e3d
--- /dev/null
+++ b/MFACodeGenerator.MAUI/MainPage.xaml.cs
@@ -0,0 +1,44 @@
+using OtpNet;
+
+namespace MFACodeGenerator.MAUI
+{
+ public partial class MainPage : ContentPage
+ {
+ int count = 0;
+
+ public MainPage()
+ {
+ InitializeComponent();
+ }
+
+
+ private async void OnGenerateMFACode(object s, EventArgs e)
+ {
+ try
+ {
+ var key = Base32Encoding.ToBytes(InputBox.Text.Replace(" ", string.Empty));
+ var secretCode =
+ new Totp(key, 30, OtpHashMode.Sha1, 6);
+ var authCode = secretCode.ComputeTotp();
+ MFACodeOutput.Text = authCode;
+ //Clipboard.SetText(authCode, TextDataFormat.Text);
+ await Clipboard.SetTextAsync(authCode);
+ }
+ catch
+ {
+ MFACodeOutput.Text = "Invalid TOTP Secret... Check your inputs!";
+ }
+ }
+ private void OnCounterClicked(object sender, EventArgs e)
+ {
+ count++;
+
+ if (count == 1)
+ CounterBtn.Text = $"Clicked {count} time";
+ else
+ CounterBtn.Text = $"Clicked {count} times";
+
+ SemanticScreenReader.Announce(CounterBtn.Text);
+ }
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/MauiProgram.cs b/MFACodeGenerator.MAUI/MauiProgram.cs
new file mode 100644
index 0000000..ca65648
--- /dev/null
+++ b/MFACodeGenerator.MAUI/MauiProgram.cs
@@ -0,0 +1,19 @@
+namespace MFACodeGenerator.MAUI
+{
+ public static class MauiProgram
+ {
+ public static MauiApp CreateMauiApp()
+ {
+ var builder = MauiApp.CreateBuilder();
+ builder
+ .UseMauiApp()
+ .ConfigureFonts(fonts =>
+ {
+ fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+ return builder.Build();
+ }
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/Android/AndroidManifest.xml b/MFACodeGenerator.MAUI/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 0000000..e9937ad
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/Android/MainActivity.cs b/MFACodeGenerator.MAUI/Platforms/Android/MainActivity.cs
new file mode 100644
index 0000000..314c4c4
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Android/MainActivity.cs
@@ -0,0 +1,11 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+
+namespace MFACodeGenerator.MAUI
+{
+ [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
+ public class MainActivity : MauiAppCompatActivity
+ {
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/Android/MainApplication.cs b/MFACodeGenerator.MAUI/Platforms/Android/MainApplication.cs
new file mode 100644
index 0000000..e33e06b
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Android/MainApplication.cs
@@ -0,0 +1,16 @@
+using Android.App;
+using Android.Runtime;
+
+namespace MFACodeGenerator.MAUI
+{
+ [Application]
+ public class MainApplication : MauiApplication
+ {
+ public MainApplication(IntPtr handle, JniHandleOwnership ownership)
+ : base(handle, ownership)
+ {
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/Android/Resources/values/colors.xml b/MFACodeGenerator.MAUI/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 0000000..c04d749
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/MacCatalyst/AppDelegate.cs b/MFACodeGenerator.MAUI/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 0000000..ecd26a4
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,10 @@
+using Foundation;
+
+namespace MFACodeGenerator.MAUI
+{
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/MacCatalyst/Info.plist b/MFACodeGenerator.MAUI/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 0000000..c96dd0a
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,30 @@
+
+
+
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/MFACodeGenerator.MAUI/Platforms/MacCatalyst/Program.cs b/MFACodeGenerator.MAUI/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 0000000..e662036
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,16 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace MFACodeGenerator.MAUI
+{
+ public class Program
+ {
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/Tizen/Main.cs b/MFACodeGenerator.MAUI/Platforms/Tizen/Main.cs
new file mode 100644
index 0000000..328f844
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Tizen/Main.cs
@@ -0,0 +1,17 @@
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+using System;
+
+namespace MFACodeGenerator.MAUI
+{
+ internal class Program : MauiApplication
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ app.Run(args);
+ }
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/Tizen/tizen-manifest.xml b/MFACodeGenerator.MAUI/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..db06f15
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/Windows/App.xaml b/MFACodeGenerator.MAUI/Platforms/Windows/App.xaml
new file mode 100644
index 0000000..a222f6c
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/MFACodeGenerator.MAUI/Platforms/Windows/App.xaml.cs b/MFACodeGenerator.MAUI/Platforms/Windows/App.xaml.cs
new file mode 100644
index 0000000..884242e
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,24 @@
+using Microsoft.UI.Xaml;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace MFACodeGenerator.MAUI.WinUI
+{
+ ///
+ /// Provides application-specific behavior to supplement the default Application class.
+ ///
+ public partial class App : MauiWinUIApplication
+ {
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App()
+ {
+ this.InitializeComponent();
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/Windows/Package.appxmanifest b/MFACodeGenerator.MAUI/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 0000000..2bcb11e
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MFACodeGenerator.MAUI/Platforms/Windows/app.manifest b/MFACodeGenerator.MAUI/Platforms/Windows/app.manifest
new file mode 100644
index 0000000..c1f95ed
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/MFACodeGenerator.MAUI/Platforms/iOS/AppDelegate.cs b/MFACodeGenerator.MAUI/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 0000000..ecd26a4
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,10 @@
+using Foundation;
+
+namespace MFACodeGenerator.MAUI
+{
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Platforms/iOS/Info.plist b/MFACodeGenerator.MAUI/Platforms/iOS/Info.plist
new file mode 100644
index 0000000..0004a4f
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/MFACodeGenerator.MAUI/Platforms/iOS/Program.cs b/MFACodeGenerator.MAUI/Platforms/iOS/Program.cs
new file mode 100644
index 0000000..e662036
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Platforms/iOS/Program.cs
@@ -0,0 +1,16 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace MFACodeGenerator.MAUI
+{
+ public class Program
+ {
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Properties/launchSettings.json b/MFACodeGenerator.MAUI/Properties/launchSettings.json
new file mode 100644
index 0000000..edf8aad
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Resources/AppIcon/appicon.svg b/MFACodeGenerator.MAUI/Resources/AppIcon/appicon.svg
new file mode 100644
index 0000000..9d63b65
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Resources/AppIcon/appiconfg.svg b/MFACodeGenerator.MAUI/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Resources/Fonts/OpenSans-Regular.ttf b/MFACodeGenerator.MAUI/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 0000000..6cbaf4b
Binary files /dev/null and b/MFACodeGenerator.MAUI/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/MFACodeGenerator.MAUI/Resources/Fonts/OpenSans-Semibold.ttf b/MFACodeGenerator.MAUI/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 0000000..554d68a
Binary files /dev/null and b/MFACodeGenerator.MAUI/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/MFACodeGenerator.MAUI/Resources/Images/dotnet_bot.svg b/MFACodeGenerator.MAUI/Resources/Images/dotnet_bot.svg
new file mode 100644
index 0000000..abfaff2
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Resources/Images/dotnet_bot.svg
@@ -0,0 +1,93 @@
+
diff --git a/MFACodeGenerator.MAUI/Resources/Raw/AboutAssets.txt b/MFACodeGenerator.MAUI/Resources/Raw/AboutAssets.txt
new file mode 100644
index 0000000..15d6244
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with you package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/MFACodeGenerator.MAUI/Resources/Splash/splash.svg b/MFACodeGenerator.MAUI/Resources/Splash/splash.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Resources/Styles/Colors.xaml b/MFACodeGenerator.MAUI/Resources/Styles/Colors.xaml
new file mode 100644
index 0000000..245758b
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Resources/Styles/Colors.xaml
@@ -0,0 +1,44 @@
+
+
+
+
+ #512BD4
+ #DFD8F7
+ #2B0B98
+ White
+ Black
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #F7B548
+ #FFD590
+ #FFE5B9
+ #28C2D1
+ #7BDDEF
+ #C3F2F4
+ #3E8EED
+ #72ACF1
+ #A7CBF6
+
+
\ No newline at end of file
diff --git a/MFACodeGenerator.MAUI/Resources/Styles/Styles.xaml b/MFACodeGenerator.MAUI/Resources/Styles/Styles.xaml
new file mode 100644
index 0000000..1ec9d55
--- /dev/null
+++ b/MFACodeGenerator.MAUI/Resources/Styles/Styles.xaml
@@ -0,0 +1,384 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+