コード例 #1
0
	private void Start()
	{
		Debug.Log("===== ObscuredStringTest =====\n");

		// example of custom crypto key using
		// this is not necessary! default key is "4441"
		ObscuredString.SetNewCryptoKey("I LOVE MY GIRL");

		// just a small self-test here (hey, Daniele! :D)
		cleanString = "Try Goscurry! Or better buy it!";
		Debug.Log("Original string:\n" + cleanString);

		obscuredString = cleanString;
		Debug.Log("How your string is stored in memory when obscured:\n" + obscuredString.GetEncrypted());

		obscuredString = cleanString = "";
	}