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.
Edlib - A lightweight and super fast C/C++ library for sequence alignment using edit distance
gem install edlib
The Gem compiles the edlib source code inside the gem at installation. If you want to use the latest edlib, see Development.
require "edlib"
a = Edlib::Aligner.new(mode: :hw, task: :path)
a.align("AACG", "TCAACCTG")
# {
# :edit_distance => 1,
# :alphabet_length => 4,
# :locations => [[2, 4], [2, 5]],
# :alignment => [0, 0, 0, 1],
# :cigar => "3=1I"
# }
keyword argument | description |
---|---|
k | edit distance is not larger than k [-1] |
mode | global (NW) , prefix (SHW) , infix (HW) ["NW"] |
task | DISTANCE, LOC, PATH ["DISTANCE"] |
additional_equalities | List of pairs of characters, where each pair defines two characters as equal. [NULL] |
a.align("AACG", "TCAACCTG", nice: true)
# {
# :edit_distance=>1,
# :alphabet_length=>4,
# :locations=>[[2, 4], [2, 5]],
# :alignment=>[0, 0, 0, 1],
# :cigar=>"3=1I",
# :query_aligned=>"AACG",
# :match_aligned=>"|||-",
# :target_aligned=>"AAC-"
# }
https://kojix2.github.io/ruby-edlib/
Pull requests welcome!
git clone https://github.com/kojix2/ruby-edlib # Please fork repo
cd ruby-edlib
bundle install
bundle exec rake compile
bundle exec rake test
Use latest edlib
git clone https://github.com/kojix2/ruby-edlib
cd ruby-edlib
bundle install
bundle exec rake edlib:update # Download latest edlib.h and edlib.cpp
bundle exec rake compile
bundle exec rake test
FAQs
Unknown package
We found that edlib 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.