Project

mskeyblob

0.0
No commit activity in last 3 years
No release in over 3 years
Exchange RSA keys between Microsoft CSP blob format (ExportCspBlob, ImportCspBlob) and ruby openssl key OpenSSL::PKey::RSA
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
~> 3.0.1
 Project Readme

Microsoft RSA key blob

Exchange RSA keys between Microsoft CSP blob format (ExportCspBlob, ImportCspBlob of RSACryptoServiceProvider) and ruby openssl key OpenSSL::PKey::RSA

Usage

Create key from blob created by ExportCspBlob

    blob = File.binread 'msblob.bin'

    key = OpenSSL::PKey::RSA.from_mskeyblob blob

Create blob for ExportCspBlob

    key = OpenSSL::PKey::RSA.new 2048

    blob = key.to_mskeyblob
    public_blob = key.to_mskeyblob(include_private: false)

Installation

Add this line to your application's Gemfile:

gem 'mskeyblob'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mskeyblob

Contributing

  1. Fork it ( https://github.com/Ziaw/mskeyblob/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Links

  1. MSDN Enhanced Provider Key BLOBs

  2. Ruby and OpenSSL