[DUG] Signing XML

Robo robo555 at gmail.com
Fri Jul 29 13:37:53 NZST 2016


LockBox 3 should do what you need, handling all sorts of cryptography:

https://github.com/TurboPack/LockBox3

Highly recommend using a library, crypto isn't something you want to do
yourself.

Robo

On Thu, Jul 28, 2016 at 11:56 PM, David Moorhouse <
David.Moorhouse at pegasus.org.nz> wrote:

> Thx Vik
>
>
>
> I can do this in dot Net.  I’m looking for a Delphi implementation so we
> can fit it into some existing code.
>
> The Clever Components suite appears to have an implementation but don’t
> want to splash out for the $
>
>
>
> Cheers
>
>
>
> D
>
>
>
> *David Moorhouse (BCom)* | *Principal Software Engineer - HealthOne*
> Pegasus Health (Charitable) Ltd
>
> P: 03 353 0871 |   W:  www.pegasus.org.nz
> E: david.moorhouse at pegasus.org.nz
> PO Box 741, Christchurch 8140
> 160 Bealey Ave, Christchurch 8014
>
> [image: cid:image003.jpg at 01CEE516.6F544D00]
>
>
>
>
>
> *From:* delphi-bounces at listserver.123.net.nz [mailto:
> delphi-bounces at listserver.123.net.nz] *On Behalf Of *Vik Vasudev
> *Sent:* Friday, 29 July 2016 9:46 a.m.
> *To:* NZ Borland Developers Group - Delphi List
> *Subject:* Re: [DUG] Signing XML
>
>
>
> Hi David,
>
>
>
> May be this might help (sorry its not a Delphi code its in C#)
>
>
>
> https://msdn.microsoft.com/en-us/library/ms229744(v=vs.110).aspx
>
>
>
>
>
>
>
> On Fri, Jul 29, 2016 at 8:53 AM, David Moorhouse <
> David.Moorhouse at pegasus.org.nz> wrote:
>
> Hi
>
>
>
> We have the need to sign a snippet of XML with an X509 digital
> certificate.  The algorithm is to canonicalise  the XML, compute a SHA256
> hash on this, and sign the hash with the certificate’s private key.
>
>
>
> I can’t see any easy way of doing this within the VCL.
>
>
>
> Any hints, or better still working code, are appreciated.
>
>
>
> David
>
>
>
>
>
> *David Moorhouse (BCom)* | *Principal Software Engineer - HealthOne*
> Pegasus Health (Charitable) Ltd
>
> P: 03 353 0871 |   W:  www.pegasus.org.nz
> E: david.moorhouse at pegasus.org.nz
> PO Box 741, Christchurch 8140
> 160 Bealey Ave, Christchurch 8014
>
> [image: cid:image003.jpg at 01CEE516.6F544D00]
>
>
>
>
>
> *****************************************************
>
> This email or attachment(s) may contain confidential or legally privileged
> information intended for the sole use of the addressee(s). Any use,
> redistribution, disclosure, or reproduction of this message, except as
> intended, is prohibited. If you received this email in error, please notify
> the sender and erase all copies of the message, including any attachments.
>
> Any views or opinions expressed in this email (unless otherwise stated)
> may not represent those of Pegasus Health Ltd.
>
> **********************************************************
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
>
>
>
>
>
> --
>
>   vikas
>
> *****************************************************
>
> This email or attachment(s) may contain confidential or legally privileged
> information intended for the sole use of the addressee(s). Any use,
> redistribution, disclosure, or reproduction of this message, except as
> intended, is prohibited. If you received this email in error, please notify
> the sender and erase all copies of the message, including any attachments.
>
> Any views or opinions expressed in this email (unless otherwise stated)
> may not represent those of Pegasus Health Ltd.
>
> **********************************************************
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20160729/60e97d34/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3614 bytes
Desc: not available
Url : http://listserver.123.net.nz/pipermail/delphi/attachments/20160729/60e97d34/attachment.jpg 


More information about the Delphi mailing list