Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.75 KB

README.md

File metadata and controls

62 lines (41 loc) · 1.75 KB

Build Status Coverage Status Code Climate

Xmlenc

This gem is a (partial) implementation of the XMLEncryption specification (http://www.w3.org/TR/xmlenc-core/)

Installation

Add this line to your application's Gemfile:

gem 'xmlenc'

And then execute:

$ bundle

Or install it yourself as:

$ gem install xmlenc

Usage

Decrypt a document

key_pem = File.read('path/to/key.pem')
xml = File.read('path/to/file.xml')

private_key = OpenSSL::PKey::RSA.new(key_pem)
encrypted_document = Xmlenc::EncryptedDocument.new(xml)
decrypted_document = encrypted_document.decrypt(private_key)

Supported algorithms

Data algorithms

Key algorithms

Roadmap

  1. add encryption (in progress)
  2. support more algorithms

Contributing

  1. Fork it
  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 new Pull Request