That is the .net API; the equivalent C API is https://msdn.microsoft.com/en-us/library/aa380261.aspx
Looking on godoc.org and github, I don't see any pre-made packages that implement this. However, you can use golang.org/x/sys/windows to call this function yourself. https://github.com/search?q=cryptprotectdata+language%3Ago&type=Code shows that there are a few projects using htis internally, if you need some sample code. Good luck! > On Nov 23, 2016, at 7:54 AM, 'Jan Berktold' via golang-nuts > <golang-nuts@googlegroups.com> wrote: > > Hello everyone, > > Does anyone know a Go package which provides an interface to the Windows Data > Protection API? > > I am pretty much searching for the Go equivalent of this: > https://msdn.microsoft.com/en-us/library/system.security.cryptography.protecteddata(v=vs.110).aspx > > <https://msdn.microsoft.com/en-us/library/system.security.cryptography.protecteddata(v=vs.110).aspx> > > Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com > <mailto:golang-nuts+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.