add in Gemfile gem 'unlimited-strength-crypto'
gem 'unlimited-strength-crypto'
or without bundler
gem install unlimited-strength-crypto
and add require 'unlimited-strength-crypto' before you use any java crypto library.
require 'unlimited-strength-crypto'