isStrongPassword 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/isStrongPassword.rb +12 -0
  3. metadata +45 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f6a077e008dba60403f6eb1db53a6db7996d11d9
4
+ data.tar.gz: e0d200a9791a96196ce573a9151de2325c0851b4
5
+ SHA512:
6
+ metadata.gz: d56dab9d081025bcc3461a99ff7b14e3831e9bbe22e714431c80f7b6b2e685014e0308f975a5538be1f55c72e4ff2438c22b683bbd312cea8424a614e8f03d11
7
+ data.tar.gz: 285c5f5b633e61982143c24afcdf3a57b964a89c159a30d997e5db3dc8522d14a41d93c29357b815852fd310d0deff1b3e6fa06c958d1e2a677c23fa41c50ba1
@@ -0,0 +1,12 @@
1
+ module CheckStrongPassword
2
+
3
+ def self.check(string)
4
+
5
+ if /(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}/.match(string)
6
+ result = true
7
+ else
8
+ result = false
9
+ end
10
+ return result
11
+ end
12
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: isStrongPassword
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Chidambar Gokak
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |-
14
+ returns true if the given password has Length greater 8- characters and include: 1 uppercase, 1 lowercase, 1 digit and 1 special character,
15
+ otherwise returns false.
16
+ email: chidu.gokak@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/isStrongPassword.rb
22
+ homepage: http://rubygems.org/gems/isStrongPassword
23
+ licenses: []
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.6.8
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: verifies if a given password is strong.
45
+ test_files: []