Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
= ReCAPTCHA Mailhide
This gem provides Ruby (and Rails) support for ReCAPTCHA's Mailhide API.
== Installation
Add this to your Gemfile:
gem 'recaptcha-mailhide'
== Configuration
Add this somewhere (if you're using Rails put it in config/initializers/recaptcha_mailhide.rb):
RecaptchaMailhide.configure do |c| c.private_key = '...' c.public_key = '...' end
If you need a set of public/private keys get them from https://www.google.com/recaptcha/mailhide/apikey
== Usage
=== In Rails views
recaptcha_mailhide('foo@example.com')
You can also provide content as a method argument or a block (just like with
link_to
):
recaptcha_mailhide('Click to view email', 'foo@example.com')
recaptcha_mailhide('foo@example.com') do # Content here end
You can also provide options (they get forwarded to link_to
):
recaptcha_mailhide('foo@example.com', class: 'hidden-email', target: '_blank')
In addition it accepts a :popup
option that will make the link
open in a popup window (requires JavaScript):
recaptcha_mailhide('foo@example.com', popup: true)
recaptcha_mailhide('foo@example.com', popup: { width: 600, height: 600 })
=== Pure Ruby
Use the following to get just the ReCAPTCHA Mailhide URL (without a link tag):
RecaptchaMailhide.url_for(email)
== TODO
== Copyright
This gem is Copyright (c) 2012 Pedro Fayolle. See LICENSE.txt for further details.
ReCAPTCHA Mailhide is Copyright (c) Google, Inc. This is gem is NOT affiliated with Google, Inc.
FAQs
Unknown package
We found that recaptcha-mailhide demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.