Magnit.AES
1.0.0
dotnet add package Magnit.AES --version 1.0.0
NuGet\Install-Package Magnit.AES -Version 1.0.0
<PackageReference Include="Magnit.AES" Version="1.0.0" />
paket add Magnit.AES --version 1.0.0
#r "nuget: Magnit.AES, 1.0.0"
// Install Magnit.AES as a Cake Addin #addin nuget:?package=Magnit.AES&version=1.0.0 // Install Magnit.AES as a Cake Tool #tool nuget:?package=Magnit.AES&version=1.0.0
Magnit.AES
This library is a lightweight utility for obfuscating data. It is not meant to be secure. These methods can be used for things like game data which might not benefit from being exposed to a user, but wouldn't be harmful if it's data were breached.
EncryptString(string plainText, string? key = null)
Encrypt a string with AES encryption.
plainText
: The string you want to encrypt.[key]
: A 32 character string. The same key must be used to encrypt and decrypt a string.If the key is left null, the hard-coded ObfuscationKey value will be used.
DecryptString(string cipherText, string? key = null)
Decrypt a string that has been encoded with AES encryption.
cipherText
: The encoded text that you want deciphered.[key]
: The same 32 character string that was used as a key for the EncryptString method.If the key is left null, the hard-coded ObfuscationKey value will be used.
ObfuscationKey
This property serves as an obfuscator. It's a well-known, hard-coded value. If no key is provided, this value can be used to both encrypt and decrypt the plain text. As the key is well-know, the "encrypted" data is not secure. But there are many cases where you just don't want the data to be in plain, readable text, but are fine to store it insecurely. This default allows for that use-case.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Magnit.AES:
Package | Downloads |
---|---|
Magnit.BranchingDialog
A C# library for rendering conversations using content generated by the Magnit.BranchingDialog.Development library. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 651 | 11/2/2022 |