if RUBY_PLATFORM == 'java'
  require 'java'
  java_import 'java.lang.ClassNotFoundException'

  begin
    security_class = java.lang.Class.for_name('javax.crypto.JceSecurity')
    restricted_field = security_class.get_declared_field('isRestricted')
    restricted_field.accessible = true
    restricted_field.set nil, false
  rescue ClassNotFoundException => e
  end
end

Enable JCE for unlimited strength encryption
Enable JCE for unlimited strength encryption
