mirror of
https://github.com/azaion/admin.git
synced 2026-06-21 13:31:08 +00:00
3a925b9b0f
- Deleted the `POST /resources/get/{dataFolder?}` and `GET /resources/get-installer` endpoints as part of the architectural shift towards simplified resource management.
- Removed associated methods and configurations, including `ResourcesService.GetEncryptedResource`, `ResourcesService.GetInstaller`, and related properties in `ResourcesConfig`.
- Cleaned up environment variables and configuration files to reflect the removal of installer-related settings.
- Eliminated the `GetResourceRequest` DTO and its validator, along with the `WrongResourceName` error code.
- Updated documentation to clarify the changes in resource handling and the retirement of per-user file encryption.
Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
250 B
C#
11 lines
250 B
C#
using System.Security.Cryptography;
|
|
using System.Text;
|
|
|
|
namespace Azaion.Services;
|
|
|
|
public static class Security
|
|
{
|
|
public static string ToHash(this string str) =>
|
|
Convert.ToBase64String(SHA384.HashData(Encoding.UTF8.GetBytes(str)));
|
|
}
|