Registry / crypto / fast-secure-compare

fast-secure-compare

JSON →
library1.0.1rbrubygemsunverified

A secure_comparison function implemented in C for blazing speed. Includes monkeypatch for Rails and Rack.

gem install fast_secure_compare
INSTALL
IMPORT
SIG · FAST-SECURE-COMPAR
F
fast-secure-compare
cryptorubyv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FastSecureCompare
require 'fast_secure_compare'

Compare two strings in constant time

require 'fast_secure_compare' FastSecureCompare.secure_compare('abc123', 'abc123') # => true
Debug
Known issues
gotchaMonkeypatches Rails and Rack by default, which may cause unexpected behavior.
fix
Load the library with require 'fast_secure_compare/no_monkeypatches' to avoid patching.
affects: >= 1.0.0
Upgrade
Version history
1.0.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Bingbot
1
Resources
fast-secure-compare — gem install fast-secure-compare · libregistry