u
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
using FrontOffice.Main.Utilities;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using MudBlazor;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace FrontOffice.Main.Pages;
|
||||
public partial class Index
|
||||
{
|
||||
[Inject] private PackageContract.PackageContractClient PackageClient { get; set; } = default!;
|
||||
|
||||
[Inject] private MobileNumberEncryptor Encryptor { get; set; }
|
||||
private string? _email;
|
||||
private bool _isLoadingPackages;
|
||||
private List<Pack> _packs = new();
|
||||
@@ -15,6 +16,17 @@ public partial class Index
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await LoadPackagesAsync();
|
||||
|
||||
|
||||
//string mobileNumber = "09387342688";
|
||||
|
||||
//// انکریپت کردن
|
||||
//string encrypted = Encryptor.EncryptMobileNumber(mobileNumber);
|
||||
//Console.WriteLine($"Encrypted: {encrypted}");
|
||||
|
||||
//// دیکریپت کردن برای تست
|
||||
//string decrypted = Encryptor.DecryptMobileNumber(encrypted);
|
||||
//Console.WriteLine($"Decrypted: {decrypted}");
|
||||
}
|
||||
|
||||
private async Task LoadPackagesAsync()
|
||||
|
||||
Reference in New Issue
Block a user