Page 1 of 1

v2.8.4 unity 2018 ios

Posted: Fri Mar 27, 2020 9:57 pm
by mrm83
Is Unity 2018 iOS supported with v2.8.4?

Updated from Unity 5.6 to 2018 and loading no longer works on iOS. Works fine with Android and Editor.

Getting error:
CryptographicException: Padding is invalid and cannot be removed.
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData (System.Byte[] inputBuffer, System.Int32 inputOffset, System.Int32 inputCount, System.Byte[]& outputBuffer, System.Int32 outputOffset, System.Security.Cryptography.PaddingMode paddingMode, System.Boolean fLast) [0x00000] in <00000000000000000000000000000000>:0
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock (System.Byte[] inputBuffer, System.Int32 inputOffset, System.Int32 inputCount) [0x00000] in <00000000000000000000000000000000>:0
at System.Security.Cryptography.CryptoStream.FlushFinalBlock () [0x00000] in <00000000000000000000000000000000>:0
at System.Security.Cryptography.CryptoStream.Dispose (System.Boolean disposing) [0x00000] in <00000000000000000000000000000000>:0
at System.IO.Stream.Close () [0x00000] in <00000000000000000000000000000000>:0
at MoodkieSecurity.AESEncryptor.iDecrypt (System.Byte[] data, System.Byte[] key, System.Byte[] iv) [0x00000] in <00000000000000000000000000000000>:0
at ES2Reader.GetEncryptedReader () [0x00000] in <00000000000000000000000000000000>:0
at ES2Reader.ReadEncrypted[T] (ES2Type type) [0x00000] in <00000000000000000000000000000000>:0
at ES2.Load[T] (System.String identifier) [0x00000] in <00000000000000000000000000000000>:0

Re: v2.8.4 unity 2018 ios

Posted: Sat Mar 28, 2020 9:34 am
by Joel
Hi there,

I've not seen this issue, and it appears to be working fine at my end. Just to confirm, are you using the latest patch downloaded from the Asset Store? After importing, you can apply the patch by going to Plugins/Easy Save 3/Legacy, and double-clicking 'Easy Save 2.unitypackage'.

All the best,
Joel

Re: v2.8.4 unity 2018 ios

Posted: Sat Mar 28, 2020 12:46 pm
by mrm83
I figured out the problem.

That exception occurs when the wrong encytption password is provided. We are using DID as the password and debug builds vs production builds were assigned different DIDs.

Re: v2.8.4 unity 2018 ios

Posted: Sat Mar 28, 2020 1:44 pm
by Joel
Glad you managed to find the issue.

All the best,
Joel