Skip to content

Commit 375e554

Browse files
author
dreamcodestudio
committed
fix: Prevent missing data from previous versions
1 parent dd9881c commit 375e554

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## [1.2.1] - 2023-10-22
4+
- Prevent missing data from previous versions
5+
36
## [1.2.0] - 2023-10-22
47
- Added Triple DES crypter to store passwords
58

Editor/Security/TripleDESCrypter.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public string Decrypt(string base64String)
3232
{
3333
if (string.IsNullOrEmpty(base64String))
3434
return string.Empty;
35-
var result = string.Empty;
35+
var result = base64String;
3636
try
3737
{
3838
var inputBytes = Convert.FromBase64String(base64String);
@@ -49,11 +49,10 @@ public string Decrypt(string base64String)
4949
catch (CryptographicException cryptoEx)
5050
{
5151
Debug.LogWarning($"{nameof(TripleDESCrypter)}-{cryptoEx.Message}");
52-
result = base64String;
5352
}
5453
catch (Exception e)
5554
{
56-
Debug.LogError($"{nameof(TripleDESCrypter)}-{e.Message}");
55+
Debug.LogWarning($"{nameof(TripleDESCrypter)}-{e.Message}");
5756
}
5857

5958
return result;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.dreamcode.mobile.android-keystore",
33
"displayName": "AutoKeystore",
4-
"version": "1.2.0",
4+
"version": "1.2.1",
55
"unity": "2020.3",
66
"description": "Allows store android keystore between sessions, without manual input everytime.",
77
"keywords": [

0 commit comments

Comments
 (0)