AES and Code First

I must add an AES envelope to a bin message in a code first server.

Do you have an example of how to do this?

Mike

This is for .Net

Hello

Something like that:

public static int Main(string[] args)
{
	ApplicationServer server = new ApplicationServer("ROServer3");

	server.NetworkServer.ServerMessages[0].Envelopes.Add(new AesEncryptionEnvelope("password"));

	server.Run(args);
	return 0;
}

Regards