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 +4 -4
- data/README.md +2 -4
- data/lib/yaml_zlib_blowfish.rb +3 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1db25885593ca06a9464c917ea8646d7e1adca8a5de2a578ef78bedfb8cfd60
|
4
|
+
data.tar.gz: d10c7751ef1e43e504f782d3c0712871a741704f12f48bbf9ffcfd23c148a2de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
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
|
data/lib/yaml_zlib_blowfish.rb
CHANGED
@@ -5,10 +5,12 @@ require 'openssl'
|
|
5
5
|
require 'digest/sha2'
|
6
6
|
|
7
7
|
class YamlZlibBlowfish
|
8
|
-
VERSION = '2.0.
|
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.
|
4
|
+
version: 2.0.230116
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- CarlosJHR64
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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
|
43
|
-
rubygems_version: 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...
|