dukpt 0.0.4 → 0.0.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
- SHA1:
3
- metadata.gz: 9de3896da9a40258097ea4f24f88517cd6c90d4a
4
- data.tar.gz: 42080b60905536315e18bce9acf40cb497f47246
2
+ SHA256:
3
+ metadata.gz: 557210f039d25101346edf7b2b1976894c8e5cfd790cb1357383cfefa2e8d293
4
+ data.tar.gz: de7f59936d0be13e7894fa05ed65260fe357fdb12c7e1a6273d9b26f3059faf8
5
5
  SHA512:
6
- metadata.gz: 3151da02540b37529b1e74cb0f4ae386273585d996f8c10a1df353807cfa7046e87a020b02470d46783c6ff449a003a0cdc4628ddb5b66828b7785255332afd6
7
- data.tar.gz: 2fd23eb0c02ce532eb08e23a3251c9c08fcb39d2b87d265ee7e553d1ba70ea9d3c5cf83f6a21a5030e626c79793655c39c4c507b7a01cdf559bf49e777dd2468
6
+ metadata.gz: 81fb7590af5b56eb1d665be005534dcd62ada3b22c263c5e771f6c23baee50a9e703f4baab76c881f6978bb8521c4e3111c05e2c547b27e958b224cf6834a1d3
7
+ data.tar.gz: 109cca430f2a3e7b77ba94916ddc32d8b1d3d5af22ab83b9309490125905acf8d67a5ab21a3bbc2bda7be30add0edda0cc16995cbb6f2d940d4972bd6580a457
@@ -0,0 +1,2 @@
1
+ enabled:
2
+ - cla
data/dupkt.gemspec CHANGED
@@ -14,4 +14,8 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "dukpt"
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = DUKPT::VERSION
17
+
18
+ gem.metadata['allowed_push_host'] = 'https://rubygems.org'
19
+
20
+ gem.add_development_dependency("rake")
17
21
  end
@@ -139,7 +139,7 @@ module DUKPT
139
139
  end
140
140
 
141
141
  def openssl_encrypt(cipher_type, key, message, is_encrypt)
142
- cipher = OpenSSL::Cipher::Cipher::new(cipher_type)
142
+ cipher = OpenSSL::Cipher.new(cipher_type)
143
143
  is_encrypt ? cipher.encrypt : cipher.decrypt
144
144
  cipher.padding = 0
145
145
  cipher.key = [key].pack('H*')
@@ -149,4 +149,4 @@ module DUKPT
149
149
  cipher_result.unpack('H*')[0]
150
150
  end
151
151
  end
152
- end
152
+ end
data/lib/dukpt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DUKPT
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dukpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Seal
@@ -9,8 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-14 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2021-02-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
14
28
  description: Implements a Derived Unique Key Per Transaction (DUKPT) decrypter
15
29
  email:
16
30
  - david.seal@shopify.com
@@ -19,7 +33,8 @@ executables: []
19
33
  extensions: []
20
34
  extra_rdoc_files: []
21
35
  files:
22
- - .gitignore
36
+ - ".github/probots.yml"
37
+ - ".gitignore"
23
38
  - Gemfile
24
39
  - LICENSE
25
40
  - README.md
@@ -33,24 +48,24 @@ files:
33
48
  - test/encryption_test.rb
34
49
  homepage: ''
35
50
  licenses: []
36
- metadata: {}
51
+ metadata:
52
+ allowed_push_host: https://rubygems.org
37
53
  post_install_message:
38
54
  rdoc_options: []
39
55
  require_paths:
40
56
  - lib
41
57
  required_ruby_version: !ruby/object:Gem::Requirement
42
58
  requirements:
43
- - - '>='
59
+ - - ">="
44
60
  - !ruby/object:Gem::Version
45
61
  version: '0'
46
62
  required_rubygems_version: !ruby/object:Gem::Requirement
47
63
  requirements:
48
- - - '>='
64
+ - - ">="
49
65
  - !ruby/object:Gem::Version
50
66
  version: '0'
51
67
  requirements: []
52
- rubyforge_project:
53
- rubygems_version: 2.0.14
68
+ rubygems_version: 3.0.3
54
69
  signing_key:
55
70
  specification_version: 4
56
71
  summary: Implements a Derived Unique Key Per Transaction (DUKPT) decrypter