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.
Enjoy using 😎
Generate human readable and easy to remember passwords
gem build passwords_generator.gemspec
gem install passwords_generator-0.5.0.gem
irb(main):001:0> require 'passwords_generator'
=> true
> PasswordGenerator.new.generate
=> "SYstdepo"
Password length
default: 8
> PasswordGenerator.new(length: 3).generate
=> "AWy"
> PasswordGenerator.new(length: 20).generate
=> "socieprIncommedozEn1"
Skip upper case
default: false
> PasswordGenerator.new(skip_upper_case: true).generate
=> "electrhu"
Without word
default: false
> PasswordGenerator.new(without_word: true).generate
=> "oFoKusar"
Skip number
default: false
> PasswordGenerator.new(skip_number: true).generate
=> "JamYgrep"
Count upper case
default: 2
> PasswordGenerator.new(count_upper_case: 5).generate
=> "DRIveCOn"
Custom dictionary
default: nil
If you want to use your dictionary to generate passwords, pass the path to the text file to the gem. words must be separated by spaces
sample.txt
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
> PasswordGenerator.new(custom_dictionary_file: 'sample.txt').generate
=> "LorEMcil"
> PasswordGenerator.new(length: 5, skip_upper_case: true).generate
=> "obopy"
> PasswordGenerator.new(length: 10, without_word: true, count_upper_case: 9).generate
=> "AXIMORUSEp"
> PasswordGenerator.new(custom_dictionary_file: 'sample.txt', skip_upper_case: true, length: 10, ).generate
=> "ullaad54mo"
skip_upper_case: false,
without_word: false,
skip_number: false,
length: 8,
count_upper_case: 2,
custom_dictionary_file: nil
FAQs
Unknown package
We found that passwords_generator 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.