Has anyone out there already written a wrapper for CAPI or CNG? http://msdn.microsoft.com/en-us/library/aa380256.aspx http://msdn.microsoft.com/en-us/library/aa376210(VS.85).aspx A quick gem search didn''t reveal anything. I ask because it might be useful for the krypt project: http://emboss.github.com/blog/2012/12/02/krypt-the-next-level-of-ruby-cryptography/ https://github.com/emboss/krypt Dan