Beispiel #1
0
	public void OnCipherTestClick()
	{
		NetworkLib.Cryptography.RSA.KeyPair keyPair = new NetworkLib.Cryptography.RSA.KeyPair ();
		byte[] encrypted = NetworkLib.Cryptography.RSA.Encryption ("haha호호!!", keyPair.publicKey, false);
		string decryptedText = NetworkLib.Cryptography.RSA.DecryptionToString (encrypted, keyPair.privateKey, false);
		Debug.Log (decryptedText);
	}
Beispiel #2
0
    public void OnCipherTestClick()
    {
        NetworkLib.Cryptography.RSA.KeyPair keyPair = new NetworkLib.Cryptography.RSA.KeyPair();
        byte[] encrypted     = NetworkLib.Cryptography.RSA.Encryption("haha호호!!", keyPair.publicKey, false);
        string decryptedText = NetworkLib.Cryptography.RSA.DecryptionToString(encrypted, keyPair.privateKey, false);

        Debug.Log(decryptedText);
    }