Skip to content
/ RubyCrypt Public

Scanner for cryptographic gems & their reverse dependecies in Ruby applications

License

Notifications You must be signed in to change notification settings

FS93/RubyCrypt

Repository files navigation

RubyCrypt

Scanner for required gems & their reverse dependencies in a Ruby Project with a bundler Gemfile

Installation

bundle config set deployment true
bundle install

Usage

  1. Navigate to the root directory of the Ruby project (which includes the Gemfile)
  2. Run
bundle exec ruby PATH_TO/rubycrypt.rb [SCAN_DIR] [EXPORT_DIR] [CRYPTO_GEMS]
  • parameters are optional, default values can be configured in rubycrypt.rb
  • outputs will be written to EXPORT_DIR/YYYY-MM-DDTHH-MM-SS in JSON and Binary Format

Example

bundle exec ruby PATH_TO/rubycrypt.rb ./lib /home/user/Desktop openssl ed25519 lockbox

Analysis of output

  1. Navigate to the RubyCrypt directory
  2. run irb
  3. load 'analysis.rb'
  4. Enter timestamp of output directory
  5. Global variables for analysis are
$config
$dependency_chains
$requirements
$filtered_requirements
$errors
$not_in_vendor_directory

To just output basic statistics about the output, run

ruby analysis.rb

from the RubyCrypt directory and enter the output directories timestamp.

About

Scanner for cryptographic gems & their reverse dependecies in Ruby applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages