Elements. Build native projects for any modern development platform, using the language(s) of your choice. Oxygene (Object Pascal), C#, Swift, Java, Go. | RemObjects Software

HelloMono

Language: Oxygene, Platform: Echoes, Category: Mono
https://github.com/remobjects/ElementsSamples/tree/master/Oxygene/Echoes/Mono/HelloMono

  • HelloMono

Main.pas

namespace AdrenoCF;

interface

type
  TMain = class
    class method Main;
  end;

implementation

uses
  Mono.Security.Cryptography;

class method TMain.Main;
var
  lMD4: MD4;
  lHash: array of byte;
begin
  Console.WriteLine('Hello from Oxygene on Mono');
  
  lMD4 := new MD4Managed(); 
  lHash := lMD4.ComputeHash(System.Text.Encoding.ASCII.GetBytes('My Secret String'));
  Console.WriteLine(lHash.Length.ToString+' bytes of hash generated:'#13#10+BitConverter.ToString(lHash));
end;

end.