We tried to use the Bakery library for SSO together with a Ruby on Rails application. In order to make the decryption work for OpenSSL I had to modify the bakery_mix method to (for openssl) correctly pad the input text before encryption. It may be helpful for others if this could be included in the module.

I attached a file with the changed/added methods.

CommentFileSizeAuthor
bakery_mix.txt1.3 KBdaniel.guettler

Comments

greggles’s picture

Status: Active » Needs work

Thanks for your bug report and for helping make this a better module. Could you provide this as a patch?

Cool to hear about a Ruby implementation of Bakery. Is that open source somewhere?

quicksketch’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)

Looks like #3005276: PHP 7 compatibility Issue for Drupal 7 includes a similar fix as part of PHP 7.1+ compatibility (and includes a patch). Let's continue over there.