Ejemplo n.º 1
0
 public static void Main(string[] args)
 {
     System.Console.WriteLine("VirgilVersion=" + VirgilVersion.AsString());
     var s = new Virgil.Crypto.Pfs.VirgilPFS();
     var v = new Virgil.Crypto.VirgilCrypto();
     var p = new Virgil.Crypto.Pythia.VirgilPythia();
 }
 public CryptoExample()
 {
     var version = VirgilVersion.AsString();
     var pfs = new Virgil.Crypto.Pfs.VirgilPFS();
     var cryptoHighLevel = new Virgil.Crypto.VirgilCrypto();
     var pythia = new Virgil.Crypto.Pythia.VirgilPythia();
 }
Ejemplo n.º 3
0
        // This is the main entry point of the application.
        static void Main(string[] args)
        {
            System.Console.WriteLine("VirgilVersion=" + VirgilVersion.AsString());

            // if you want to use a different Application Delegate class from "UnitTestAppDelegate"
            // you can specify it here.
            UIApplication.Main(args, null, "UnitTestAppDelegate");
        }
        protected override void OnCreate(Bundle bundle)
        {
            System.Console.WriteLine("VirgilVersion=" + VirgilVersion.AsString());

            // tests can be inside the main assembly
            AddTest(Assembly.GetExecutingAssembly());
            // or in any reference assemblies
            // AddTest (typeof (Your.Library.TestClass).Assembly);

            // Once you called base.OnCreate(), you cannot add more assemblies.

            base.OnCreate(bundle);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            System.Console.WriteLine("VirgilVersion=" + VirgilVersion.AsString());
            var s = new Virgil.Crypto.Pfs.VirgilPFS();
            var v = new Virgil.Crypto.VirgilCrypto();
            var p = new Virgil.Crypto.Pythia.VirgilPythia();

            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById <Button>(Resource.Id.myButton);

            button.Click += delegate { button.Text = $"{count++} clicks!"; };
        }
Ejemplo n.º 6
0
        static void Main(string[] args)
        {
            System.Console.WriteLine("VirgilVersion=" + VirgilVersion.AsString());
            var crypto = new VirgilCrypto();
            var pythia = new Virgil.Crypto.Pythia.VirgilPythia();

            try
            {
                var hash = crypto.GenerateHash(Encoding.UTF8.GetBytes("hi"));
            }
            catch (Exception e)
            {
                Debug.Write(e.StackTrace);
            }

            NSApplication.Init();
            NSApplication.Main(args);
        }