crypt-fog 1.0.2 → 1.0.3

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
- SHA1:
3
- metadata.gz: 35eb055755ad1545850c5445801a75d238feb3ac
4
- data.tar.gz: 0f6a1d205d1de2fd12bd2fc380bfa0be0d101ddc
2
+ SHA256:
3
+ metadata.gz: 60425fd0f74e8c77cbfbeac464334d67778c0063cfa9eabe0935a87b0952f174
4
+ data.tar.gz: 2d16e2e51e7a6d9a4ac38aa878f9c3aefed118f7322fdad84c14f015333272fc
5
5
  SHA512:
6
- metadata.gz: 2010aa9876ccd1a18f66ebad64ed98f821e56ea557e2d439c737721923d00533e23372b53b89fc499dc5ec4a1ac85a169fb9d5d8d67df29af6d74a4c72dad720
7
- data.tar.gz: 9e97413911e88184a0152b534fd2d887d35a091a81fbb97ff0954ff35f3bba1e0f9e0ba6a65dc7827d365502de95dd3f1d349a6a84e091547fe28862b86ee3a3
6
+ metadata.gz: 8d502f8dd7a9abe0b3b311c5459571e166d364fc8b988c2e83e3141b1cd9eaee2538ea57951174c645fbedbf3a7aed84a85a7cf979968fcd6b051949d15a1993
7
+ data.tar.gz: 2420db40b9ceb86375e8dc6529960926d4c1ab4dc601060dea297c188e84516f3f36fbcb0dc727be31632088aab836644a3d1313c2e39ae5d9b8fb5aa2b82512
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
Binary file
@@ -1,16 +1,26 @@
1
- == 1.0.2 - 2-Nov-2014
2
- * Changed license to Artistic 2.0.
1
+ ## 1.0.3 - 6-Apr-2021
2
+ * Added a Gemfile.
3
+ * Added a cert.
4
+ * Added a crypt-fog.rb file for convenience.
5
+ * Updates to the gemspec, including rubygems.org metadata.
6
+ * The VERSION constant is now frozen.
7
+ * Documentation files are now in markdown format.
8
+ * Fixed the fogenc binary perms so that it's executable by default.
9
+ * Assumes you're on Ruby 2.x or later by now.
10
+
11
+ ## 1.0.2 - 2-Nov-2014
12
+ * Changed license to Artistic-2.0.
3
13
  * Some gemspec and Rakefile updates.
4
14
  * Test file renamed to test_crypt_fog.rb.
5
15
  * Some updates to the README.
6
16
 
7
- == 1.0.1 - 1-Aug-2007
17
+ ## 1.0.1 - 1-Aug-2007
8
18
  * Changed 'quickenc' to 'fogenc'
9
19
  * Now includes a Rakefile with tasks for installation and testing.
10
20
  * There are now comments in the source, though they are still obfuscated.
11
21
  * Some doc updates.
12
22
 
13
- == 1.0.0 - 12-Jun-2005
23
+ ## 1.0.0 - 12-Jun-2005
14
24
  * Moved project to RubyForge.
15
25
  * Removed the 'doc' directory. Because the documentation is so short, that
16
26
  information is now in the README file, which is rdoc friendly.
@@ -21,5 +31,5 @@
21
31
  README file.
22
32
  * Added a gemspec.
23
33
 
24
- == 0.1.0 - 30-Jul-2003
34
+ ## 0.1.0 - 30-Jul-2003
25
35
  - Initial release
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org' do
2
+ gemspec
3
+ end
data/MANIFEST.md ADDED
@@ -0,0 +1,10 @@
1
+ * MANIFEST.md
2
+ * CHANGES.md
3
+ * README.md
4
+ * Rakefile
5
+ * crypt-fog.gemspec
6
+ * bin/fogenc
7
+ * certs/djberg96_pub.pem
8
+ * lib/crypt-fog.rb
9
+ * lib/crypt/fog.rb
10
+ * test/tc_fog.rb
data/README.md ADDED
@@ -0,0 +1,42 @@
1
+ ## Description
2
+ The crypt-fog library is a simple encryption mechanism, but slightly better
3
+ than Rot13. Its primary goal is to provide a reasonable amount of
4
+ obfuscation without having to resort to public/private key exchanges, etc.
5
+
6
+ For truly sensitive data I recommend using a more advanced encryption scheme.
7
+
8
+ In addition to the module, a stand-alone program is included called
9
+ "fogenc" that takes both a string and a number as arguments and returns
10
+ your encrypted string. You can then copy/paste that string to a .rc file.
11
+ Just remember the number you picked in order to decrypt it.
12
+
13
+ ## Installation
14
+ gem install crypt-fog
15
+
16
+ ## Command Line
17
+ ```
18
+ fogenc -s "hello" -d 1688
19
+ fogenc -f "test.txt" -d 1066
20
+ ```
21
+
22
+ ## Synopsis
23
+ ```ruby
24
+ require 'crypt/fog' # or 'crypt-fog'
25
+ include Crypt
26
+
27
+ s = Fog.new("hello",2003)
28
+ p s # ";8??B"
29
+ p s.decrypt # "hello"
30
+
31
+ Fog.decrypt(";8??B",2003) # "hello"
32
+ ```
33
+
34
+ ## License
35
+ Artistic-2.0
36
+
37
+ ## Copyright
38
+ (C) 2003-2021 Daniel J. Berger
39
+ All rights reserved.
40
+
41
+ ## Author
42
+ Daniel J. Berger
data/Rakefile CHANGED
@@ -2,18 +2,15 @@ require 'rake'
2
2
  require 'rake/testtask'
3
3
  require 'rake/clean'
4
4
 
5
- CLEAN.include("*.gem", "*.rbc")
5
+ CLEAN.include("*.gem", "*.rbc", "*.lock")
6
6
 
7
7
  namespace :gem do
8
8
  desc 'Build the crypt-fog gem'
9
9
  task :create => [:clean] do
10
- spec = eval(IO.read('crypt-fog.gemspec'))
11
10
  require 'rubygems/package'
12
- if Gem::VERSION < "2.0"
13
- Gem::Builder.new(spec).build
14
- else
15
- Gem::Package.build(spec)
16
- end
11
+ spec = eval(IO.read('crypt-fog.gemspec'))
12
+ spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
13
+ Gem::Package.build(spec)
17
14
  end
18
15
 
19
16
  desc 'Install the crypt-fog library as a gem'
data/bin/fogenc CHANGED
File without changes
@@ -0,0 +1,26 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
3
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
4
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
5
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
+ bTCCAaI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gAqYmdnzedsQtE
22
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
23
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
24
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
25
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
26
+ -----END CERTIFICATE-----
data/crypt-fog.gemspec CHANGED
@@ -1,21 +1,32 @@
1
1
  require 'rubygems'
2
2
 
3
- Gem::Specification.new do |gem|
4
- gem.name = 'crypt-fog'
5
- gem.version = '1.0.2'
6
- gem.author = 'Daniel J. Berger'
7
- gem.license = 'Artistic 2.0'
8
- gem.description = 'A simple string encryption scheme'
9
- gem.email = 'djberg96@gmail.com'
10
- gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
11
- gem.test_files = ['test/test_crypt_fog.rb']
12
- gem.homepage = 'https://github.com/djberg96/crypt-fog'
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'crypt-fog'
5
+ spec.version = '1.0.3'
6
+ spec.author = 'Daniel J. Berger'
7
+ spec.license = 'Artistic-2.0'
8
+ spec.description = 'A simple string encryption scheme'
9
+ spec.email = 'djberg96@gmail.com'
10
+ spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
11
+ spec.test_files = ['test/test_crypt_fog.rb']
12
+ spec.homepage = 'https://github.com/djberg96/crypt-fog'
13
+ spec.cert_chain = ['certs/djberg96_pub.pem']
13
14
 
14
- gem.executables << 'fogenc'
15
+ spec.executables << 'fogenc'
15
16
 
16
- gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
17
+ spec.add_development_dependency('rake')
18
+ spec.add_development_dependency('test-unit', '~> 3.2')
17
19
 
18
- gem.summary = <<-EOF
20
+ spec.metadata = {
21
+ 'homepage_uri' => 'https://github.com/djberg96/crypt-fog',
22
+ 'bug_tracker_uri' => 'https://github.com/djberg96/crypt-fog/issues',
23
+ 'changelog_uri' => 'https://github.com/djberg96/crypt-fog/blob/master/CHANGES.md',
24
+ 'documentation_uri' => 'https://github.com/djberg96/crypt-fog/wiki',
25
+ 'source_code_uri' => 'https://github.com/djberg96/crypt-fog',
26
+ 'wiki_uri' => 'https://github.com/djberg96/crypt-fog/wiki'
27
+ }
28
+
29
+ spec.summary = <<-EOF
19
30
  crypt-fog is a simple encryption mechanism, but slightly better
20
31
  than Rot13. It's primary goal is to provide a reasonable amount
21
32
  of obfuscation without having to resort to public/private key
data/lib/crypt-fog.rb ADDED
@@ -0,0 +1 @@
1
+ require_relative 'crypt/fog'
data/lib/crypt/fog.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Crypt
2
2
 
3
- module_eval("\xB2\xBB\xB0\xC2\xC2o\x95\xBE\xB6o\x8Bo\xA2\xC3\xC1\xB8\xBD\xB6Yoo\xA5\x94\xA1\xA2\x98\x9E\x9Do\x8Cov\x80}\x7F}\x81vYYooro\xA1\xB4\xC3\xC4\xC1\xBD\xC2o\xB0\xBDo\xB4\xBD\xB2\xC1\xC8\xBF\xC3\xB4\xB3oz\xC2\xC3\xC1\xB8\xBD\xB6zo\xB1\xB0\xC2\xB4\xB3o\xBE\xBDo\xC3\xB7\xB4oz\xB3\xB4\xB6\xC1\xB4\xB4zo\xC3\xB7\xB0\xC3o\xC8\xBE\xC4o\xBF\xB0\xC2\xC2}o\xA3\xB7\xB4Yooro\xB3\xB4\xB5\xB0\xC4\xBB\xC3o\xB3\xB4\xB6\xC1\xB4\xB4o\xB8\xC2o\x80\x82}o\xA3\xB7\xB4oz\xB3\xB4\xB6\xC1\xB4\xB4zo\xB8\xC2o\xBC\xBE\xC1\xB4o\xBE\xC1o\xBB\xB4\xC2\xC2o\xB0o\xC2\xB0\xBB\xC3o\xC5\xB0\xBB\xC4\xB4}YoorYoo\xB3\xB4\xB5o\xB8\xBD\x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5
5
  end
@@ -8,43 +8,44 @@ require 'test/unit'
8
8
  require 'crypt/fog'
9
9
 
10
10
  class TC_Fog < Test::Unit::TestCase
11
- def setup
12
- @fog = Crypt::Fog.new('hello')
13
- end
14
-
15
- def test_crypt_fog_version
16
- assert_equal('1.0.2', Crypt::Fog::VERSION)
17
- end
18
-
19
- def test_crypt_fog_constructor_one_argument_form
20
- assert_nothing_raised{ Crypt::Fog.new('string') }
21
- assert_kind_of(String, Crypt::Fog.new('string'))
22
- end
23
-
24
- def test_crypt_fog_constructor_two_argument_form
25
- assert_nothing_raised{ Crypt::Fog.new('string', 55) }
26
- assert_kind_of(String, Crypt::Fog.new('string', 55))
27
- end
28
-
29
- def test_class_decrypt
30
- assert_respond_to(Crypt::Fog, :decrypt)
31
- assert_nothing_raised{ Crypt::Fog.decrypt('string') }
32
- assert_nothing_raised{ Crypt::Fog.decrypt('string', 66) }
33
- assert_equal('hello', Crypt::Fog.decrypt(';8??B', 2003))
34
- end
35
-
36
- def test_instance_decrypt
37
- assert_respond_to(@fog, :decrypt)
38
- assert_nothing_raised{ @fog.decrypt }
39
- assert_equal('hello', @fog.decrypt)
40
- end
41
-
42
- def test_types
43
- assert_kind_of(Crypt::Fog, @fog)
44
- assert_kind_of(String, @fog.decrypt)
45
- end
46
-
47
- def teardown
48
- @fog = nil
49
- end
11
+ def setup
12
+ @fog = Crypt::Fog.new('hello')
13
+ end
14
+
15
+ def test_crypt_fog_version
16
+ assert_equal('1.0.3', Crypt::Fog::VERSION)
17
+ assert_true(Crypt::Fog::VERSION.frozen?)
18
+ end
19
+
20
+ def test_crypt_fog_constructor_one_argument_form
21
+ assert_nothing_raised{ Crypt::Fog.new('string') }
22
+ assert_kind_of(String, Crypt::Fog.new('string'))
23
+ end
24
+
25
+ def test_crypt_fog_constructor_two_argument_form
26
+ assert_nothing_raised{ Crypt::Fog.new('string', 55) }
27
+ assert_kind_of(String, Crypt::Fog.new('string', 55))
28
+ end
29
+
30
+ def test_class_decrypt
31
+ assert_respond_to(Crypt::Fog, :decrypt)
32
+ assert_nothing_raised{ Crypt::Fog.decrypt('string') }
33
+ assert_nothing_raised{ Crypt::Fog.decrypt('string', 66) }
34
+ assert_equal('hello', Crypt::Fog.decrypt(';8??B', 2003))
35
+ end
36
+
37
+ def test_instance_decrypt
38
+ assert_respond_to(@fog, :decrypt)
39
+ assert_nothing_raised{ @fog.decrypt }
40
+ assert_equal('hello', @fog.decrypt)
41
+ end
42
+
43
+ def test_types
44
+ assert_kind_of(Crypt::Fog, @fog)
45
+ assert_kind_of(String, @fog.decrypt)
46
+ end
47
+
48
+ def teardown
49
+ @fog = nil
50
+ end
50
51
  end
metadata CHANGED
@@ -1,55 +1,115 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypt-fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2014-11-02 00:00:00.000000000 Z
12
- dependencies: []
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
14
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
16
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
17
+ bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI06cxr0/h
18
+ A+j+pc8fgpRgBVmHFaFunq28GPC3IvW7Nvc3Y8SnAW7pP1EQIbhlwRIaQzJ93/yj
19
+ u95KpkP7tA9erypnV7dpzBkzNlX14AC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ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
36
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
37
+ -----END CERTIFICATE-----
38
+ date: 2021-04-06 00:00:00.000000000 Z
39
+ dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: rake
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: test-unit
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '3.2'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.2'
13
68
  description: A simple string encryption scheme
14
69
  email: djberg96@gmail.com
15
70
  executables:
16
71
  - fogenc
17
72
  extensions: []
18
- extra_rdoc_files:
19
- - README
20
- - CHANGES
21
- - MANIFEST
73
+ extra_rdoc_files: []
22
74
  files:
23
- - CHANGES
24
- - MANIFEST
25
- - README
75
+ - CHANGES.md
76
+ - Gemfile
77
+ - MANIFEST.md
78
+ - README.md
26
79
  - Rakefile
27
80
  - bin/fogenc
81
+ - certs/djberg96_pub.pem
28
82
  - crypt-fog.gemspec
83
+ - lib/crypt-fog.rb
29
84
  - lib/crypt/fog.rb
30
85
  - test/test_crypt_fog.rb
31
86
  homepage: https://github.com/djberg96/crypt-fog
32
87
  licenses:
33
- - Artistic 2.0
34
- metadata: {}
35
- post_install_message:
88
+ - Artistic-2.0
89
+ metadata:
90
+ homepage_uri: https://github.com/djberg96/crypt-fog
91
+ bug_tracker_uri: https://github.com/djberg96/crypt-fog/issues
92
+ changelog_uri: https://github.com/djberg96/crypt-fog/blob/master/CHANGES.md
93
+ documentation_uri: https://github.com/djberg96/crypt-fog/wiki
94
+ source_code_uri: https://github.com/djberg96/crypt-fog
95
+ wiki_uri: https://github.com/djberg96/crypt-fog/wiki
96
+ post_install_message:
36
97
  rdoc_options: []
37
98
  require_paths:
38
99
  - lib
39
100
  required_ruby_version: !ruby/object:Gem::Requirement
40
101
  requirements:
41
- - - '>='
102
+ - - ">="
42
103
  - !ruby/object:Gem::Version
43
104
  version: '0'
44
105
  required_rubygems_version: !ruby/object:Gem::Requirement
45
106
  requirements:
46
- - - '>='
107
+ - - ">="
47
108
  - !ruby/object:Gem::Version
48
109
  version: '0'
49
110
  requirements: []
50
- rubyforge_project:
51
- rubygems_version: 2.4.2
52
- signing_key:
111
+ rubygems_version: 3.2.15
112
+ signing_key:
53
113
  specification_version: 4
54
114
  summary: crypt-fog is a simple encryption mechanism, but slightly better than Rot13. It's
55
115
  primary goal is to provide a reasonable amount of obfuscation without having to
metadata.gz.sig ADDED
Binary file
data/MANIFEST DELETED
@@ -1,8 +0,0 @@
1
- * MANIFEST
2
- * CHANGES
3
- * README
4
- * Rakefile
5
- * crypt-fog.gemspec
6
- * bin/fogenc
7
- * lib/crypt/fog.rb
8
- * test/tc_fog.rb
data/README DELETED
@@ -1,39 +0,0 @@
1
- == Description
2
- The crypt-fog library is a simple encryption mechanism, but slightly better
3
- than Rot13. Its primary goal is to provide a reasonable amount of
4
- obfuscation without having to resort to public/private key exchanges, etc.
5
-
6
- For hyper-sensitive data I recommend using a more advanced encryption scheme.
7
-
8
- In addition to the module, a stand-alone program is included called
9
- "fogenc" that takes both a string and a number as arguments and returns
10
- your encrypted string. You can then copy/paste that string to a .rc file.
11
- Just remember the number you picked in order to decrypt it.
12
-
13
- Usage: fogenc -s "hello" -d 1688
14
- fogenc -f "test.txt" -d 1066
15
-
16
- Modify the shebang line as needed.
17
-
18
- == Installation
19
- gem install crypt-fog
20
-
21
- == Synopsis
22
- require 'crypt/fog'
23
- include Crypt
24
-
25
- s = Fog.new("hello",2003)
26
- p s # ";8??B"
27
- p s.decrypt # "hello"
28
-
29
- Fog.decrypt(";8??B",2003) # "hello"
30
-
31
- == License
32
- Artistic 2.0
33
-
34
- == Copyright
35
- (C) 2003-2014 Daniel J. Berger
36
- All rights reserved.
37
-
38
- == Author
39
- Daniel J. Berger