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 +5 -5
- data/.github/probots.yml +2 -0
- data/dupkt.gemspec +4 -0
- data/lib/dukpt/encryption.rb +2 -2
- data/lib/dukpt/version.rb +1 -1
- metadata +24 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 557210f039d25101346edf7b2b1976894c8e5cfd790cb1357383cfefa2e8d293
|
4
|
+
data.tar.gz: de7f59936d0be13e7894fa05ed65260fe357fdb12c7e1a6273d9b26f3059faf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81fb7590af5b56eb1d665be005534dcd62ada3b22c263c5e771f6c23baee50a9e703f4baab76c881f6978bb8521c4e3111c05e2c547b27e958b224cf6834a1d3
|
7
|
+
data.tar.gz: 109cca430f2a3e7b77ba94916ddc32d8b1d3d5af22ab83b9309490125905acf8d67a5ab21a3bbc2bda7be30add0edda0cc16995cbb6f2d940d4972bd6580a457
|
data/.github/probots.yml
ADDED
data/dupkt.gemspec
CHANGED
data/lib/dukpt/encryption.rb
CHANGED
@@ -139,7 +139,7 @@ module DUKPT
|
|
139
139
|
end
|
140
140
|
|
141
141
|
def openssl_encrypt(cipher_type, key, message, is_encrypt)
|
142
|
-
|
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
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
|
+
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:
|
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
|
-
- .
|
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
|
-
|
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
|