No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
README.md
Rakefile
password_mate-0.0.1.gem
password_mate-0.0.2.gem
password_mate-0.0.3.gem
password_mate.gemspec

README.md

Password Mate

A Gem to generate Strong Random Passwords for your applications. The gem would generate random password till it is strong enough.

Installation

In Rails 3+, add this to your Gemfile and run the bundle command.

gem 'password_mate'

Usage

In your class -

require 'password_mate'
include PasswordMate

There are mainly two helpers available for Password Mate usage.

strong?(str)
generate_random_password

Example

class GeneratePassword
	require 'rubygems'
	require 'password_mate/password_mate.rb'

	include PasswordMate
end

puts GeneratePassword.new.strong?("Abcd@1")
puts GeneratePassword.new.strong?("abcd")
puts GeneratePassword.new.generate_random_password