Search found 29 matches

by Johnny Star
Wed Nov 04, 2020 10:33 am
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

Alright, but hang on. I think I might have found a way. I update as an '[EDITxx]' once done. [EDIT01] Ok it's working now! public void ReplaceWithCloudSavedData(byte[] data) { var cacheSettings = new ES3Settings(ES3.Location.Cache); ES3.SaveRaw(data, cacheSettings); JUtil.Log(JUtil.LogHandle().Bag, ...
by Johnny Star
Wed Nov 04, 2020 8:54 am
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

Ok. But why is there no way to decrypt it for debugging? The 'Load'/'LoadInto' functions decrypts it so is there no way to actually decrypt all the bytes to a string for easy debugging? I'm a bit confused on this approach. [EDIT01] Also, this seems ok when you are preparing to push data to the cloud...
by Johnny Star
Wed Nov 04, 2020 8:10 am
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

Thank you for: var str = cacheSettings.encoding.GetString(bytes); So I changed it something like this now: public void ReplaceWithCloudSavedData(byte[] data) { var cacheSettings = new ES3Settings(ES3.Location.Cache); ES3.SaveRaw(data, cacheSettings); JUtil.Log(JUtil.LogHandle().Bag, $"<b>Bag ►<...
by Johnny Star
Tue Nov 03, 2020 6:12 pm
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

Hi Joel... I know this has been a long topic. Again I took a break from this to work on something else. Getting ES3, my game logics and another third-party cloud saving plugin (not mentioning the name as you removed it the last time) is a big stress. Regarding the format exception, please could you ...
by Johnny Star
Fri Oct 16, 2020 4:59 am
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

Hi Joel, hope you are doing well! I took a break from this for some time... Now I'm back. I did read up on the link you shared (w3schools). It's a good read, thank you! I also tried it on another phone and I have this new error. ArgumentException: Offset and length were out of bounds for the array o...
by Johnny Star
Mon Oct 05, 2020 6:02 pm
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

I just checked the link. My god the example is so long! Do I have to add all this just to catch the exception? Sorry I've never did this before. Don't easy save have a way to tell if it's encrypted and then I handle it from there?
by Johnny Star
Mon Oct 05, 2020 3:39 pm
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

Yup my is the latest version just checked the changelog text in the changelog folder. It's 3.3.1f9

Erm... What codes do I use to try catch errors? Also, how do I load with unencrypted settings if I choose to encrypt it within the settings? Sorry, I'm really confused.
by Johnny Star
Sat Oct 03, 2020 2:23 pm
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

So the *UPDATE2* mentioned above fixed the error. But I have a major concern or maybe I'm not thinking about the process right. I have sent my APK to several people. The ES3 save file was not password protected. But now it is. Within the Editor, a non password protected file has to be deleted (like ...
by Johnny Star
Sat Oct 03, 2020 1:15 pm
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

Hi Joel, thank you for getting back! Unfortunately, I can't do that at the moment. My project is duck-taped together and it's quite big and messy. I can copy-paste scripts or take screenshots if that helps but I really don't think I'm in the capacity to simplify my project. I hope you understand my ...
by Johnny Star
Wed Sep 30, 2020 12:36 pm
Forum: General Discussion
Topic: About Encryption & Decryption
Replies: 19
Views: 5816

Re: About Encryption & Decryption

Sure here are the codes from 1 of my classes. All other classes also have the same saving and loading. [Button, FoldoutGroupS01("Editor Methods Testing")] public void NewWallet(bool saveDataLocal = false, bool saveDataCloud = false) { collectableGoldCoin = 1000; collectableDiamond = 100; J...