block64 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -7,5 +7,5 @@ source "http://rubygems.org"
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
9
  gem "bundler", "~> 1.0.0"
10
- gem "jeweler", "~> 1.5.1"
10
+ gem "jeweler", "~> 1.5.2"
11
11
  end
data/Gemfile.lock CHANGED
@@ -13,4 +13,4 @@ PLATFORMS
13
13
 
14
14
  DEPENDENCIES
15
15
  bundler (~> 1.0.0)
16
- jeweler (~> 1.5.1)
16
+ jeweler (~> 1.5.2)
@@ -1,5 +1,5 @@
1
1
  Copyright (c) 2007 Bart Teeuwisse
2
- Copyright (c) 2010 Martin Kozák
2
+ Copyright (c) 2010 - 2011 Martin Kozák
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person obtaining
5
5
  a copy of this software and associated documentation files (the
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ block64
2
+ =======
3
+
4
+ **Block64** is a replacement for original [crypto64][3] gem. It can encrypt
5
+ and decrypt data of arbitrary length by [RSA][4] public/private key. It's
6
+ fixed for *use with latest Ruby* and *much faster* than original.
7
+
8
+ ### Usage
9
+
10
+ API is trivial and usage is simple:
11
+
12
+ require "block64"
13
+
14
+ key = OpenSSL::PKey::RSA::new(<pem-encoded-key>)
15
+ encoded = key.encrypt64(<some-very-long-message>)
16
+ decoded = key.decrypt64(encoded)
17
+
18
+
19
+ Contributing
20
+ ------------
21
+
22
+ 1. Fork it.
23
+ 2. Create a branch (`git checkout -b 20101220-my-change`).
24
+ 3. Commit your changes (`git commit -am "Added something"`).
25
+ 4. Push to the branch (`git push origin 20101220-my-change`).
26
+ 5. Create an [Issue][1] with a link to your branch.
27
+ 6. Enjoy a refreshing Diet Coke and wait.
28
+
29
+ Copyright
30
+ ---------
31
+
32
+ Copyright &copy; 2007 Bart Teeuwisse and &copy; 2010 - 2011 [Martin Kozák][2].
33
+ See `LICENSE.txt` for further details.
34
+
35
+ [1]: http://github.com/martinkozak/block64/issues
36
+ [2]: http://www.martinkozak.net/
37
+ [3]: http://github.com/bartt/crypto64
38
+ [4]: http://en.wikipedia.org/wiki/RSA
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ Jeweler::Tasks.new do |gem|
16
16
  gem.name = "block64"
17
17
  gem.homepage = "http://github.com/martinkozak/block64"
18
18
  gem.license = "MIT"
19
- gem.summary = 'Encrypt and decrypt text of arbitrary length using RSA cyphers. Fixed and much faster fork of "crypto64" gem.'
19
+ gem.summary = 'Encrypt and decrypt data of arbitrary length using RSA cyphers. Fixed and much faster fork of "crypto64" gem.'
20
20
  #gem.description = %Q{TODO: longer description of your gem}
21
21
  gem.email = "martinkozak@martinkozak.net"
22
22
  gem.authors = ["Martin Kozák"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/block64.gemspec CHANGED
@@ -5,22 +5,22 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{block64}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Martin Kozák"]
12
- s.date = %q{2010-12-20}
12
+ s.date = %q{2011-01-13}
13
13
  s.email = %q{martinkozak@martinkozak.net}
14
14
  s.extra_rdoc_files = [
15
- "LICENSE",
16
- "README.rdoc"
15
+ "LICENSE.txt",
16
+ "README.md"
17
17
  ]
18
18
  s.files = [
19
19
  ".document",
20
20
  "Gemfile",
21
21
  "Gemfile.lock",
22
- "LICENSE",
23
- "README.rdoc",
22
+ "LICENSE.txt",
23
+ "README.md",
24
24
  "Rakefile",
25
25
  "VERSION",
26
26
  "block64.gemspec",
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
30
30
  s.licenses = ["MIT"]
31
31
  s.require_paths = ["lib"]
32
32
  s.rubygems_version = %q{1.3.7}
33
- s.summary = %q{Encrypt and decrypt text of arbitrary length using RSA cyphers. Fixed and much faster fork of "crypto64" gem.}
33
+ s.summary = %q{Encrypt and decrypt data of arbitrary length using RSA cyphers. Fixed and much faster fork of "crypto64" gem.}
34
34
 
35
35
  if s.respond_to? :specification_version then
36
36
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
@@ -38,14 +38,14 @@ Gem::Specification.new do |s|
38
38
 
39
39
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
40
40
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
41
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
41
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
42
42
  else
43
43
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
44
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
44
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
45
45
  end
46
46
  else
47
47
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
48
- s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
48
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
49
49
  end
50
50
  end
51
51
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Martin Koz\xC3\xA1k"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-20 00:00:00 +01:00
17
+ date: 2011-01-13 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -42,8 +42,8 @@ dependencies:
42
42
  segments:
43
43
  - 1
44
44
  - 5
45
- - 1
46
- version: 1.5.1
45
+ - 2
46
+ version: 1.5.2
47
47
  type: :development
48
48
  prerelease: false
49
49
  version_requirements: *id002
@@ -54,14 +54,14 @@ executables: []
54
54
  extensions: []
55
55
 
56
56
  extra_rdoc_files:
57
- - LICENSE
58
- - README.rdoc
57
+ - LICENSE.txt
58
+ - README.md
59
59
  files:
60
60
  - .document
61
61
  - Gemfile
62
62
  - Gemfile.lock
63
- - LICENSE
64
- - README.rdoc
63
+ - LICENSE.txt
64
+ - README.md
65
65
  - Rakefile
66
66
  - VERSION
67
67
  - block64.gemspec
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- hash: 1987216510182532825
83
+ hash: -2742329720458929055
84
84
  segments:
85
85
  - 0
86
86
  version: "0"
@@ -98,6 +98,6 @@ rubyforge_project:
98
98
  rubygems_version: 1.3.7
99
99
  signing_key:
100
100
  specification_version: 3
101
- summary: Encrypt and decrypt text of arbitrary length using RSA cyphers. Fixed and much faster fork of "crypto64" gem.
101
+ summary: Encrypt and decrypt data of arbitrary length using RSA cyphers. Fixed and much faster fork of "crypto64" gem.
102
102
  test_files: []
103
103
 
data/README.rdoc DELETED
@@ -1,19 +0,0 @@
1
- = block64
2
-
3
- See source code. Both API and using is trivial and evident in it.
4
-
5
- == Contributing to block64
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2007 Bart Teeuwisse and (c) 2010 Martin Kozák. See LICENSE.txt for
18
- further details.
19
-