Skip to content

A (partial) implementation of the XMLEncryption specification in Ruby

License

Notifications You must be signed in to change notification settings

digidentity/xmlenc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A (partial) implementation of the XMLEncryption specification in Ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages