예제 #1
0
        public static void WriteFile(ApikeyPrefs account)
        {
            string accountJson = JsonUtility.ToJson(account);

            byte[] encryptedBinary = RijndaelEncryption.Encrypt(Encoding.ASCII.GetBytes(accountJson), EncyptPassword);
            File.WriteAllBytes(RecordFilePath, encryptedBinary);
        }
예제 #2
0
        public void OnSaveButtonClicked()
        {
            ApikeyPrefs apiKeyPref = new ApikeyPrefs();

            apiKeyPref.apikey = apiKeyInputField.text;
            apiKeyPref.secret = secretInputField.text;
            ApikeyPrefs.WriteFile(apiKeyPref);
        }