Move core to external libs, Starting terminal crossplatform client

This commit is contained in:
Aurélie Delhaie
2023-01-08 21:45:42 +01:00
parent 40645a80a1
commit e5274702ab
56 changed files with 146 additions and 67 deletions

View File

@@ -0,0 +1,29 @@
using PasswordGenerator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenSaveCloudCore.Core
{
public class PasswordTool
{
private PasswordTool() { }
public static bool CheckRequirements(string password)
{
if (password.Length < 6)
{
return false;
}
return true;
}
public static string GeneratePassword()
{
Password pwd = new(12);
return pwd.Next();
}
}
}