5 ms·
Alternatively, if you are not using Rails but are still using Ruby, then you can use OpenSSL::HMAC.
by ashconnor 14y ago
Alternatively, if you are not using Rails but are still using Ruby, then you can use OpenSSL::HMAC.
- tptacek 14y agoThis is a MUCH WORSE IDEA. Don't do this. Even this Python wrapper library does a better job providing HMAC services to users than OpenSSL's HMAC primitive does. Leave OpenSSL:* to the suckers^H^H^H^H^H^H crypto library implementors.
- ashconnor 14y agoThe wrapper is pretty elegant weighing in at 3 functions; it all depends on how high-level you want to go. If people are having trouble they can refer to the Rails ActiveSupport source code for help.