Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
cusip_style_luhn_mod_n
Advanced tools
CUSIP-style luhn mod N algorithm based on https://commons.apache.org/proper/commons-validator/apidocs/org/apache/commons/validator/routines/checkdigit/CUSIPCheckDigit.html and https://en.wikipedia.org/wiki/Luhn_mod_N_algorithm
Add this line to your application's Gemfile and run bundle
:
gem 'cusip_style_luhn_mod_n'
npm i cusip_style_luhn_mod_n --save
# Check validity of check digit:
CUSIPStyleLuhnModN.valid?("A1B2C5")
=> true
CUSIPStyleLuhnModN.valid?("A1B2C4")
=> false
# Generate check digit
CUSIPStyleLuhnModN.check_digit("A1B2C")
=> 5
// Check validity of check digit:
CUSIPStyleLuhnModN.isValid("A1B2C5")
=> true
CUSIPStyleLuhnModN.isValid("A1B2C4")
=> false
// Generate check digit
CUSIPStyleLuhnModN.checkDigit("A1B2C")
=> 5
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
FAQs
CUSIP-style luhn mod N
The npm package cusip_style_luhn_mod_n receives a total of 0 weekly downloads. As such, cusip_style_luhn_mod_n popularity was classified as not popular.
We found that cusip_style_luhn_mod_n 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.