New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dancroak-strong_password

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dancroak-strong_password

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= Strong Password

This is an extension to Clearance, an authentication gem from thoughtbot. It is a collection of modules which add restrictions to passwords on your User ActiveRecord model.

These are common things that public companies in the United States include in their security audits of systems:

  • password minimum length
  • password minimum number of non-alphanumeric characters
  • password duplicate consecutive characters
  • password history
  • password automatic change period of days
  • password bad attempts

None of these will ever be in Clearance, as it focuses on the bare minimum for email/password authentication and does not try to be super security-aware. We (myself and thoughtbot) are not security professionals and don't pretend to be.

These requirements are those I've personally been informed are commonly part of security audits. I make no claims that by using this gem you will pass any US laws.

However, if you find yourself in the situation where a public company requests these items before they'll use your software, Strong Password will help you save some time.

== Usage

Length:

class User < ActiveRecord::Base
  include Clearance::User
  include StrongPassword::MinimumLength

  validates_password_length_minimum_is 8
end

Non-alphanumeric characters:

class User < ActiveRecord::Base
  include Clearance::User
  include StrongPassword::NonAlphanumeric

  validates_password_non_alphanumeric_minimum_is 2
end

== Copyright

Copyright (c) 2009 Dan Croak. See LICENSE for details.

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc