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.
SingleEmailVerification
Advanced tools
The Single Email Verification Gem is a Ruby library that provides functionality to verify single email addresses. It allows you to easily integrate email verification into your Ruby applications.
To install the gem, add the following line to your application's Gemfile:
$ gem install 'SingleEmailVerification'
Install the gem and add to the application's Gemfile by executing:
$ bundle nstall
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install SingleEmailVerification
To use the Single Email Verification gem, require it in your Ruby code:
require 'emailVerification'
Then, create an instance of the EmailVerification::Client class and use its single_verify method to verify a single email address:
class ClientTest
def initialize
@client = EmailVerification::Client.new
end
def test_single_verify
email = 'sahal.abdullah@mslm.io'
resp = @client.single_verify(email)
puts resp
end
end
ClientTest.new.test_single_verify
To modify your ClientTest class to allow users to add their API key from the MSL cloud, you can implement a method to set the API key and use it when initializing the EmailVerification::Client. Here's the updated code:
require 'email_verification'
class ClientTest def initialize(api_key = nil) @api_key = api_key @client = EmailVerification::Client.new(api_key: @api_key) end
def set_api_key(api_key) @api_key = api_key @client = EmailVerification::Client.new(api_key: @api_key) end
def test_single_verify email = 'sahal.abdullah@mslm.io' resp = @client.single_verify(email) puts resp end end
client_test = ClientTest.new('your_api_key_here')
client_test.test_single_verify
With this modification, users can provide their API key either during initialization or after instantiation using the set_api_key method. This gives them the flexibility to use their MSL cloud API key for unlimited hits.
Bug reports and pull requests are welcome on GitHub at https://github.com/sahalAbdullah/emailVerification. Please provide detailed descriptions and steps to reproduce any bugs you encounter.
The Single Email Verification gem is available as open source under the terms of the MIT License. You are free to use and modify it as per your requirements.
Everyone interacting in the EmailVerification project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that SingleEmailVerification demonstrated a healthy version release cadence and project activity because the last version was released less than 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.