Skip to content

Commit

Permalink
fix: Prevent missing data from previous versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamcodestudio committed Oct 22, 2023
1 parent dd9881c commit 375e554
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [1.2.1] - 2023-10-22
- Prevent missing data from previous versions

## [1.2.0] - 2023-10-22
- Added Triple DES crypter to store passwords

Expand Down
5 changes: 2 additions & 3 deletions Editor/Security/TripleDESCrypter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public string Decrypt(string base64String)
{
if (string.IsNullOrEmpty(base64String))
return string.Empty;
var result = string.Empty;
var result = base64String;
try
{
var inputBytes = Convert.FromBase64String(base64String);
Expand All @@ -49,11 +49,10 @@ public string Decrypt(string base64String)
catch (CryptographicException cryptoEx)
{
Debug.LogWarning($"{nameof(TripleDESCrypter)}-{cryptoEx.Message}");
result = base64String;
}
catch (Exception e)
{
Debug.LogError($"{nameof(TripleDESCrypter)}-{e.Message}");
Debug.LogWarning($"{nameof(TripleDESCrypter)}-{e.Message}");
}

return result;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.dreamcode.mobile.android-keystore",
"displayName": "AutoKeystore",
"version": "1.2.0",
"version": "1.2.1",
"unity": "2020.3",
"description": "Allows store android keystore between sessions, without manual input everytime.",
"keywords": [
Expand Down

0 comments on commit 375e554

Please sign in to comment.