pgp-rb 0.1.1-x86_64-linux → 0.1.3-x86_64-linux

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: af5e792befdae49af2845efbf03e77cb0b66293e14459b33c279c24e0dd1cc39
4
- data.tar.gz: 1a7f9a5d084d0080ad29fa3f18cf96c290c5d5cc9db5869c693308b9fb30b196
3
+ metadata.gz: 921dafc69e72421ce4b0485d31f68575ddbcbf07b0c8efd42e3c033583a3a767
4
+ data.tar.gz: 946b44cd06a24d122c9971673a0388b60a32afe9c13eaacfa56f536c2108f8fa
5
5
  SHA512:
6
- metadata.gz: 3e54a317c7747dd462551af7298dd19134edd63c98d0d9ecfd856128b55bff61d1305f06e7c2ad6bd9dde94e9c64f1f37f6b58ef97b991dbcd3a97b9a4475bdd
7
- data.tar.gz: 40719cc3f56b8e81b79d5ad07e7f43fbdb43d26e6bcbc2711f01d1f7df1378ab95426185ff698c01b1bb79d4c9e4679a531337067d4b3ff032fb0b34463dfcdb
6
+ metadata.gz: 838179e3f08aace4a5d163e8f03d9a9cf7a0d55f6cadefa8537d337cf8ac9d6f65ced0c4eb758a67be78e33a897973c2de4ae8e24220aa6b16baea69892686ec
7
+ data.tar.gz: ee11ce46ab30a5871fda6e743467d5da7324fa82096476392352b0d314c0e878b25eb718eadeb30a57278a256732edb4ad5bab9ef55ab9e717d9093c3893c360
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PGP
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.3'
5
5
  end
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
- ENCRIPTION_ALGORITHM_IDEA = 1
35
- ENCRIPTION_ALGORITHM_TRIPLE_DES = 2
36
- ENCRIPTION_ALGORITHM_CAST5 = 3
37
- ENCRIPTION_ALGORITHM_BLOWFISH = 4
38
- ENCRIPTION_ALGORITHM_AES_128 = 7
39
- ENCRIPTION_ALGORITHM_AES_192 = 8
40
- ENCRIPTION_ALGORITHM_AES_256 = 9
41
- ENCRIPTION_ALGORITHM_TWOFISH = 10
42
- ENCRIPTION_ALGORITHM_CAMELLIA_128 = 11
43
- ENCRIPTION_ALGORITHM_CAMELLIA_192 = 12
44
- ENCRIPTION_ALGORITHM_CAMELLIA_256 = 13
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 = ENCRIPTION_ALGORITHM_AES_128)
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.1
4
+ version: 0.1.3
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Kirill Zaitsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry