argon2-kdf 0.1.0 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f019623035aea784f0cea6cc9ad0bb5b1b00c90809ee02ac3510b1109d4da9c8
4
- data.tar.gz: ef9230c7006e9bb1f0d898133fcc9bbbabcc6c9884093829de11209dca8e9b89
3
+ metadata.gz: 316f06f1f8fda0fa39322a743f1bad3df6d2ebd63d635002a25ee364ad36cad2
4
+ data.tar.gz: 552444d8c7755c4333f032c66dc03d4941e8282d2505f3253f87d992cb462521
5
5
  SHA512:
6
- metadata.gz: 23805c54f020514be5c33d0282322f2fdc653b2add0e1b729f663c43e13bef0b05b4ac8d851f98fc51e6d3aef3c9dba89fb160393c7e1b7cee02f4d10bf8e874
7
- data.tar.gz: 3cb87e907f3ec89274f08e5125b579799db4a3d8af16f2ad4e523e1e9f22399070a5ac63113a64bbae8c10777f56ec91bb329479024616d3f3b4c306983b4c54
6
+ metadata.gz: dc0e85e38196db93e901c08eb12380301974a2640a758930f34749865b081c5ecb7fe9946c3d52fdb4d3f796d59a70e9bda8327f3dd3e63d0e165de13976be22
7
+ data.tar.gz: aa09a7dde3810f24202884d8b994cbb42e232d79f227643aa5c450edd0309cd572aa7125570a04d964604e56ac5a3df901d107624b161ec310f46b9884fc55c6
@@ -1,3 +1,23 @@
1
+ ## 0.1.5 (2021-01-05)
2
+
3
+ - Fixed ARM detection
4
+
5
+ ## 0.1.4 (2020-12-28)
6
+
7
+ - Added ARM shared library for Mac
8
+
9
+ ## 0.1.3 (2020-03-25)
10
+
11
+ - Fixed `Symbol not found` error on Mac 10.13
12
+
13
+ ## 0.1.2 (2020-02-11)
14
+
15
+ - Fixed `Could not find Argon2` error on some Linux platforms
16
+
17
+ ## 0.1.1 (2020-02-09)
18
+
19
+ - Fixed illegal instruction error on some Linux platforms
20
+
1
21
  ## 0.1.0 (2020-02-09)
2
22
 
3
23
  - First release
data/README.md CHANGED
@@ -5,6 +5,10 @@
5
5
  - No dependencies
6
6
  - Works on Linux, Mac, and Windows
7
7
 
8
+ For password hashing, use the [argon2](https://github.com/technion/ruby-argon2) gem
9
+
10
+ [![Build Status](https://github.com/ankane/argon2-kdf/workflows/build/badge.svg?branch=master)](https://github.com/ankane/argon2-kdf/actions)
11
+
8
12
  ## Installation
9
13
 
10
14
  Add this line to your application’s Gemfile:
@@ -16,7 +20,7 @@ gem 'argon2-kdf'
16
20
  ## Getting Started
17
21
 
18
22
  ```ruby
19
- Argon2::KDF.argon2id("pass", salt: "salt", t: 3, m: 15, p: 1, length: 32)
23
+ Argon2::KDF.argon2id("pass", salt: "somesalt", t: 3, m: 15, p: 1, length: 32)
20
24
  ```
21
25
 
22
26
  `argon2i` and `argon2d` are also supported
@@ -15,7 +15,11 @@ module Argon2
15
15
  if Gem.win_platform?
16
16
  "argon2.dll"
17
17
  elsif RbConfig::CONFIG["host_os"] =~ /darwin/i
18
- "libargon2.dylib"
18
+ if RbConfig::CONFIG["host_cpu"] =~ /arm/i
19
+ "libargon2.arm64.dylib"
20
+ else
21
+ "libargon2.dylib"
22
+ end
19
23
  else
20
24
  "libargon2.so"
21
25
  end
@@ -8,8 +8,7 @@ module Argon2
8
8
  dlload Fiddle.dlopen(libs.shift)
9
9
  rescue Fiddle::DLError => e
10
10
  retry if libs.any?
11
- raise e if ENV["ARGON2_KDF_DEBUG"]
12
- raise LoadError, "Could not find Argon2"
11
+ raise e
13
12
  end
14
13
 
15
14
  # https://github.com/P-H-C/phc-winner-argon2/blob/master/include/argon2.h
@@ -1,5 +1,5 @@
1
1
  module Argon2
2
2
  module KDF
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
Binary file
Binary file
metadata CHANGED
@@ -1,58 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: argon2-kdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '5'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '5'
55
- description:
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
56
14
  email: andrew@chartkick.com
57
15
  executables: []
58
16
  extensions: []
@@ -66,13 +24,14 @@ files:
66
24
  - lib/argon2/kdf/version.rb
67
25
  - vendor/LICENSE
68
26
  - vendor/argon2.dll
27
+ - vendor/libargon2.arm64.dylib
69
28
  - vendor/libargon2.dylib
70
29
  - vendor/libargon2.so
71
30
  homepage: https://github.com/ankane/argon2-kdf
72
31
  licenses:
73
32
  - MIT
74
33
  metadata: {}
75
- post_install_message:
34
+ post_install_message:
76
35
  rdoc_options: []
77
36
  require_paths:
78
37
  - lib
@@ -87,8 +46,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
46
  - !ruby/object:Gem::Version
88
47
  version: '0'
89
48
  requirements: []
90
- rubygems_version: 3.1.2
91
- signing_key:
49
+ rubygems_version: 3.2.3
50
+ signing_key:
92
51
  specification_version: 4
93
52
  summary: Argon2 key derivation for Ruby
94
53
  test_files: []