Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Crypto.asmdef
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"name": "crypto.asmdef"
}
{
"name": "Crypto",
"references": [],
"optionalUnityReferences": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false
}
3 changes: 1 addition & 2 deletions SimpleAESEncryption.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Security.Cryptography;
using System.Text;
// ReSharper disable MemberCanBePrivate.Global

namespace DUCK.Crypto
{
Expand Down Expand Up @@ -62,7 +61,7 @@ public static string Decrypt(AESEncryptedText encryptedText, string password)
/// <returns>The original plainText string.</returns>
public static string Decrypt(string encryptedText, string iv, string password)
{
using (Aes aes = Aes.Create())
using (var aes = Aes.Create())
{
var ivBytes = Convert.FromBase64String(iv);
var encryptedTextBytes = Convert.FromBase64String(encryptedText);
Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests.asmdef
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "DUCK.Crypto",
"references": [
"crypto.asmdef"
"Crypto"
],
"optionalUnityReferences": [
"TestAssemblies"
Expand Down