Project

xmlenc

0.2
No commit activity in last 3 years
No release in over 3 years
A (partial)implementation of the XMLENC specificiation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.0.0
>= 0.7.3
>= 1.6.0, < 2.0.0
 Project Readme

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