Re: [go-nuts] Re: CMSSignedData in Golang

2024-04-03 Thread Karlovsky Alexey
You can wrap your java BC code in http server and access it with golang http client, also, you can wrap your BC code in CLI tool and exec java process with os.exec. But, as I can understand you need CMS signature for xml content, with golang you can do CMS signatures with https://github.com/fullsa

Re: [go-nuts] XML Canonicalization and signing

2024-02-15 Thread Karlovsky Alexey
It's a strange task, because for xml there is a XMLDSIG standard for signing XML documents. I recommend trying https://github.com/russellhaering/goxmldsig for this. If XMLDSig is not suitable and you definitely want to create a digital signature of an xml - you should think about xml normalization

Re: [go-nuts] Encrypting a small secret using curve25519

2023-09-21 Thread Karlovsky Alexey
You can use CMS encryption (part of https://datatracker.ietf.org/doc/html/rfc5652) For example you can try https://github.com/mozilla-services/pkcs7 In CMS you use a public key to encrypt the generated intermediate symmetric key (content encryption key) and the receiver can decrypt this key and the

Re: [go-nuts] Create a XML signature my XML DATA

2022-12-22 Thread Karlovsky Alexey
used for random key generation randomKeyStore > := dsig.RandomKeyStoreForTest() > > want to use previously generated .pfx file, key password . > > Anu suggestion to implement. > > > > On Thu, Dec 22, 2022 at 4:26 PM Karlovsky Alexey > wrote: > >> Hi,

Re: [go-nuts] Create a XML signature my XML DATA

2022-12-22 Thread Karlovsky Alexey
/BAIwADANBgkqhkiG9w0BAQsFAAOBgQBmLMDfozjxxG2Scrj/p9IwQS8hLL8HXQZ9BgeoG8MW1c0ZOmo/9ElFlQhih0YspzgKKYozNN6X8WkuKPJtTRJk5uCaQqOLkGn1+0HLBbnaWW3v+2Ca7MLIZihlq6xwf25aRwYGiEoBgJ9PyaLaR/vYd0+N7Z6yQbNxh5D4zzEm/A== > > > > > > > But i am getting http://www.w3.org/2006/12/xml-c14n11"/> &g

Re: [go-nuts] Create a XML signature my XML DATA

2022-12-21 Thread Karlovsky Alexey
Hi, I can recommend to start with this library https://github.com/russellhaering/goxmldsig On Tue, 20 Dec 2022, 19:03 Reeturaj Sahoo, wrote: > Hello Golang Team, > > I want to implement Signed XML to my XML Data . > If anyone have reference document .Kindly share > > -- > You received this mess

Re: [go-nuts] Re: Tour of Go seems to be broken.

2021-11-23 Thread Karlovsky Alexey
Hi, I had the same problem in the Firefox browser. Actually, there are 2 errors in the browser console: Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 3 script.js:587:30117 Content Security Policy: The page’s settings blocked the loading of

Re: [go-nuts] how golang stores variables in the computer’s memory?

2021-08-17 Thread Karlovsky Alexey
Hi, I find very interesting and helpful this book: https://go101.org/article/101.html >From it's description: *Go 101 is a book focusing on Go syntax/semantics and all kinds of runtime related things (Go 1.17 ready) and tries to help gophers gain a deep and thorough understanding of Go. This book

Re: [go-nuts] Re: What books/tutorail/resources/blog for newcomer to golang?

2020-09-21 Thread Karlovsky Alexey
Also i can recommend this book: https://go101.org/article/101.html On Wed, Sep 16, 2020 at 1:15 PM Vladimir Varankin wrote: > Hey! > > My peaks, that helped me a lot, back when I started with Go (depending on > what's your prefered way to learn and how fast do you have to learn it, > some might