secure_hasher 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/secure_hasher/hasher.rb +2 -2
- data/lib/secure_hasher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 878537626f6353fa38ca0f62f28027e12fb685c9
|
4
|
+
data.tar.gz: 4a480da917aa6cf34b99c4a7c4ab61069ca0f876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1510a7b3fed45cbe830d2a6700691ddb21205f21766622576dafe5a9e0840c3cb67b391d5dd4e2a37b3250f5d0e347d9b8c3e7420b4b2f03d0d8550b982fe474
|
7
|
+
data.tar.gz: 901c46daca8d037dfd10dd4c5998b2effeed4d7c741444915f11d8d63c7dc5de5b75e0bbaed261e9bb0f0fec4b7538d4a593e6950fae094364db4c261ccfc103
|
data/lib/secure_hasher/hasher.rb
CHANGED
@@ -7,11 +7,11 @@ module SecureHasher
|
|
7
7
|
# @raise [ArgumentError] No password provided.
|
8
8
|
#
|
9
9
|
# @example Basic Usage
|
10
|
-
# SecureHasher.hash('mypassword')
|
10
|
+
# SecureHasher.hash(password: 'mypassword')
|
11
11
|
# # => "xx.sEzWY1w1qk"
|
12
12
|
#
|
13
13
|
# @example Advanced Usage
|
14
|
-
# SecureHasher.hash('mypassword', 'xy')
|
14
|
+
# SecureHasher.hash(password: 'mypassword', salt: 'xy')
|
15
15
|
# # => "xyoxiBrqcbujE"
|
16
16
|
#
|
17
17
|
def self.secure_hash(password: false, salt: 'xx')
|