public static void Init(string _sKEY = null, string _sIV = null) { sKEY = _sKEY ?? sKEY; sIV = _sIV ?? sIV; string key = PlayerPrefs.GetString(EncryptionManager.GetHashEx(publicKey), ""); if (key != "") { publicKeyStr = EncryptionManager.Decrypt(key); } else { publicKeyStr = Utils.GetRandomString(16) + SystemInfo.deviceUniqueIdentifier; PlayerPrefs.SetString(EncryptionManager.GetHashEx(publicKey), EncryptionManager.Encrypt(publicKeyStr)); } }