pgp-rb 0.1.1-aarch64-linux → 0.1.3-aarch64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pgp-rb/3.1/pgp_rb.so +0 -0
- data/lib/pgp-rb/3.2/pgp_rb.so +0 -0
- data/lib/pgp-rb/3.3/pgp_rb.so +0 -0
- data/lib/pgp-rb/version.rb +1 -1
- data/lib/pgp.rb +13 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22c7a3469c7fde8a46ecdf7d62c68c9749ea597f615f52586df59bf1d71f4081
|
4
|
+
data.tar.gz: be3ea548a10659b92a021266ef570d695d635333d6e758be3b1265a6542f7d6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0e6a92d79f7d4a188e8dae16ff06880136f30f8d5e5cb3bc652a3a9ceb366e9f74f7c85ff24a0e8c78f7d64bea550c2da759b960a63594035f5a7343c103332
|
7
|
+
data.tar.gz: 8dc0e12adbb400b8a8cc8fae11b19d705f2142385fd3d3377886a34f35804107ac2141023899fc8d0961fee22b0599a10491c0b28210c25ea826080a32501f7d
|
data/lib/pgp-rb/3.1/pgp_rb.so
CHANGED
Binary file
|
data/lib/pgp-rb/3.2/pgp_rb.so
CHANGED
Binary file
|
data/lib/pgp-rb/3.3/pgp_rb.so
CHANGED
Binary file
|
data/lib/pgp-rb/version.rb
CHANGED
data/lib/pgp.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
begin
|
3
4
|
/(?<ruby_version>\d+\.\d+)/ =~ RUBY_VERSION
|
4
5
|
require_relative "pgp-rb/#{ruby_version}/pgp_rb"
|
@@ -31,17 +32,17 @@ module PGP
|
|
31
32
|
KEY_ALGORITHM_EDDSA => 'EdDSA'
|
32
33
|
}.freeze
|
33
34
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
35
|
+
ENCRYPTION_ALGORITHM_IDEA = 1
|
36
|
+
ENCRYPTION_ALGORITHM_TRIPLE_DES = 2
|
37
|
+
ENCRYPTION_ALGORITHM_CAST5 = 3
|
38
|
+
ENCRYPTION_ALGORITHM_BLOWFISH = 4
|
39
|
+
ENCRYPTION_ALGORITHM_AES_128 = 7
|
40
|
+
ENCRYPTION_ALGORITHM_AES_192 = 8
|
41
|
+
ENCRYPTION_ALGORITHM_AES_256 = 9
|
42
|
+
ENCRYPTION_ALGORITHM_TWOFISH = 10
|
43
|
+
ENCRYPTION_ALGORITHM_CAMELLIA_128 = 11
|
44
|
+
ENCRYPTION_ALGORITHM_CAMELLIA_192 = 12
|
45
|
+
ENCRYPTION_ALGORITHM_CAMELLIA_256 = 13
|
45
46
|
|
46
47
|
# Public Key class provides an native extension representation for working with PGP public keys.
|
47
48
|
class PublicKey
|
@@ -110,7 +111,7 @@ module PGP
|
|
110
111
|
# @param data [String] the data to be encrypted.
|
111
112
|
# @param algorithm [Integer] the encryption algorithm to use, defaults to AES-128.
|
112
113
|
# @return [String] the encrypted data encoded by base64.
|
113
|
-
def encrypt(data, algorithm =
|
114
|
+
def encrypt(data, algorithm = ENCRYPTION_ALGORITHM_AES_128)
|
114
115
|
encrypt_with_algorithm(data, algorithm)
|
115
116
|
end
|
116
117
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pgp-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- Kirill Zaitsev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|