jooeycheng / adyen-cse-ruby Goto Github PK
View Code? Open in Web Editor NEWAdyen Client Side Encryption (CSE) library for Ruby.
Home Page: https://rubygems.org/gems/adyen-cse-ruby
License: Apache License 2.0
Adyen Client Side Encryption (CSE) library for Ruby.
Home Page: https://rubygems.org/gems/adyen-cse-ruby
License: Apache License 2.0
Happening on certain environments (CircleCI), still unsure of root cause:
OpenSSL::CCMError:
unsupported cipher algorithm (AES)
./vendor/bundle/ruby/2.5.0/gems/openssl-ccm-1.2.1/lib/openssl/ccm.rb:42:in `initialize'
./vendor/bundle/ruby/2.5.0/gems/adyen-cse-ruby-1.1.0/lib/adyen_cse/encrypter.rb:34:in `new'
./vendor/bundle/ruby/2.5.0/gems/adyen-cse-ruby-1.1.0/lib/adyen_cse/encrypter.rb:34:in `encrypt!'
Refer to SmallLars/openssl-ccm#4 for issue explanation.
The NoMethodError
is triggered from
https://github.com/jooeycheng/adyen-cse-ruby/blob/v1.0.0/lib/adyen_cse/encrypter.rb#L49
https://github.com/jooeycheng/adyen-cse-ruby/blob/master/lib/adyen_cse/encrypter.rb#L49
as in MRI 2.4.3 the OpenSSL::PKey::RSA class changed; you are suppose to call #set_keys.
https://ruby-doc.org/stdlib-2.4.3/libdoc/openssl/rdoc/OpenSSL/PKey/RSA.html#method-i-set_key
Please check the following commit in the fork of @vbanthia, maybe he could make a PR (instead of publishing the gem himself with v2.0.0).
vbanthia-zz@898d275
Ruby Version: ruby 2.4.4p296 (2018-03-28 revision 63013)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.