/hmac-ruby-php-example

Working example to encrypt/decrypt and transfer hmac message between php and ruby.

Primary LanguagePHPMIT LicenseMIT

HMAC Ruby <=> PHP example

try by executing ruby hmac.rb

  • generates a hmac value url encoded for transfering sensitive data between systems
  • works between ruby and php or within
  • uses aes-128-ecb (NOT SECURE)
  • or aes-256-cbc

Tested with

  • php56
  • php70
  • ruby2.3