Exemplo n.º 1
0
        public static CLRData CLRMain(CLRData data)
        {
            // x:\jsc.svn\examples\javascript\test\testwebcryptokeyexport\testwebcryptokeyexport\applicationwebservice.cs

            if (data.EncryptedHelloString != null)
            {
                RSADuplex.AtMessage(data.EncryptedHelloString);
            }



            return(new CLRData
            {
                e = RSADuplex.PublicKey.Exponent,
                m = RSADuplex.PublicKey.Modulus,


                EncryptedHelloString = new EncryptedString(data.e, data.m,
                                                           //text: typeof(object).AssemblyQualifiedName + " hello from CLRMain"
                                                           text: "12345"
                                                           )
            });
        }
Exemplo n.º 2
0
		public static CLRData CLRMain(CLRData data)
		{
			// x:\jsc.svn\examples\javascript\test\testwebcryptokeyexport\testwebcryptokeyexport\applicationwebservice.cs

			if (data.EncryptedHelloString != null)
			{
				RSADuplex.AtMessage(data.EncryptedHelloString);
			}



			return new CLRData
			{
				e = RSADuplex.PublicKey.Exponent,
				m = RSADuplex.PublicKey.Modulus,


				EncryptedHelloString = new EncryptedString(data.e, data.m,
					//text: typeof(object).AssemblyQualifiedName + " hello from CLRMain"
					text: "12345"
				)
			};


		}