yaml_zlib_blowfish 2.0.210127 → 2.0.230116

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: 0c4fd11cdccda9c22dce4cb018034abc3e211ab8baf501f40b5a013908ca5ea2
4
- data.tar.gz: 7bcb971acd454a6692bc79a90193ba001d5c8724dfea82a8dfcf344f8f51aa02
3
+ metadata.gz: b1db25885593ca06a9464c917ea8646d7e1adca8a5de2a578ef78bedfb8cfd60
4
+ data.tar.gz: d10c7751ef1e43e504f782d3c0712871a741704f12f48bbf9ffcfd23c148a2de
5
5
  SHA512:
6
- metadata.gz: e5b116d431a511890f3b8cda1d1999968aa6ce5ce60da57930a0a26f2c6fca362cd015aaa9ff2e46a7000d9bb89fe223b6663460becdfaf8756e38de967d8e1b
7
- data.tar.gz: 44d58c2a3963ce74a36f2fd7c3f54a01ba78b758f3eecb81add08dc9f6850c6b6d1b220b644cc96c18f8f3ed663a01687471d02604db514cc8d771ebf0399bf8
6
+ metadata.gz: 84a7c740b8cfc8944725d3a2ae541f2d89c71a75072b9b6eaac822acf814801bea6da2547f9d5818fc269ee3d54f29d54bcf415e44b02d787a78d522b5fc6385
7
+ data.tar.gz: c059dfa7c9fda033f2d6e29ad301736e6c4081977210baef4a244ac03bb3f5d513bbd3c6e9c292af661c00ae481838264985a8d5cc524ca2261bdd7d4088284a
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # YamlZlibBlowfish
2
2
 
3
- * [VERSION 2.0.210127](https://github.com/carlosjhr64/yaml_zlib_blowfish/releases)
3
+ * [VERSION 2.0.230116](https://github.com/carlosjhr64/yaml_zlib_blowfish/releases)
4
4
  * [github](https://github.com/carlosjhr64/yaml_zlib_blowfish)
5
5
  * [rubygems](https://rubygems.org/gems/yaml_zlib_blowfish)
6
6
 
@@ -10,7 +10,6 @@ Have you ever wanted to YAML dump, Zlib compress, and Blowfish encrypt your data
10
10
  YOU HAVE!? Well...
11
11
 
12
12
  ## SYNOPSIS:
13
-
14
13
  ```ruby
15
14
  require 'yaml_zlib_blowfish'
16
15
  conf0 = [ 1, 2.0, 'Three', :four, {five: 'Cinco'}]
@@ -20,7 +19,6 @@ conf1 = yzb.load('./tmp/dump.yzb')
20
19
  conf1 == conf0 #=> true
21
20
  # ...
22
21
  ```
23
-
24
22
  ## INSTALL:
25
23
 
26
24
  $ gem install yaml_zlib_blowfish
@@ -29,7 +27,7 @@ conf1 == conf0 #=> true
29
27
 
30
28
  (The MIT License)
31
29
 
32
- Copyright (c) 2021 CarlosJHR64
30
+ Copyright (c) 2023 CarlosJHR64
33
31
 
34
32
  Permission is hereby granted, free of charge, to any person obtaining
35
33
  a copy of this software and associated documentation files (the
@@ -5,10 +5,12 @@ require 'openssl'
5
5
  require 'digest/sha2'
6
6
 
7
7
  class YamlZlibBlowfish
8
- VERSION = '2.0.210127'
8
+ VERSION = '2.0.230116'
9
9
 
10
10
  # yzb = YamlZlibBlowfish.new(passphrase)
11
11
  def initialize(passphrase)
12
+ # Blowfish takes a variable length key from 32 to 448 bits.
13
+ # Here we create a 256 bit key based on the pass-phrase:
12
14
  @key = Digest::SHA256.digest(passphrase)
13
15
  @cipher = OpenSSL::Cipher::BF.new(:CBC)
14
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_zlib_blowfish
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.210127
4
+ version: 2.0.230116
5
5
  platform: ruby
6
6
  authors:
7
- - carlosjhr64
8
- autorequire:
7
+ - CarlosJHR64
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-27 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Have you ever wanted to YAML dump, Zlib compress, and Blowfish encrypt your data structures?
@@ -24,7 +24,7 @@ homepage: https://github.com/carlosjhr64/yaml_zlib_blowfish
24
24
  licenses:
25
25
  - MIT
26
26
  metadata: {}
27
- post_install_message:
27
+ post_install_message:
28
28
  rdoc_options: []
29
29
  require_paths:
30
30
  - lib
@@ -39,9 +39,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  requirements:
42
- - 'ruby: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]'
43
- rubygems_version: 3.2.3
44
- signing_key:
42
+ - 'ruby: ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]'
43
+ rubygems_version: 3.4.3
44
+ signing_key:
45
45
  specification_version: 4
46
46
  summary: Have you ever wanted to YAML dump, Zlib compress, and Blowfish encrypt your
47
47
  data structures? YOU HAVE!? Well...