ezcrypto 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.1 November 2nd, 2005 New method in KeyHolder
2
+
3
+ Added set_encoded_key(enc) to KeyHolder for setting a key with the Base64 encoded keyvalue.
4
+
1
5
  0.2 October 30th, 2005 Ruby on Rails integration
2
6
 
3
7
  As promised I have now included my first version of ActiveCrypto the crypto layer for ActiveRecord and Ruby on Rails.
data/README CHANGED
@@ -9,6 +9,16 @@ EzCrypto is an easy to use wrapper around the poorly documented OpenSSL ruby lib
9
9
  * Single class object oriented access to most commonly used features
10
10
  * Ruby like
11
11
 
12
+ == Installation
13
+
14
+ Download it from here:
15
+
16
+ http://rubyforge.org/frs/?group_id=755&release_id=3321
17
+
18
+ or install it via Ruby Gems:
19
+
20
+ gem install ezruby
21
+
12
22
  == Simple examples
13
23
 
14
24
  ==== To encrypt:
data/README_ACTIVE_CRYPTO CHANGED
@@ -7,6 +7,17 @@ ActiveCrypto is based on EzCrypto and provides application oriented crypto suppo
7
7
  * Transparent encryption/decryption
8
8
  * Ruby on Rails like domain language
9
9
 
10
+ == Installation
11
+
12
+ Download it from here:
13
+
14
+ http://rubyforge.org/frs/?group_id=755&release_id=3321
15
+
16
+ or install it via Ruby Gems:
17
+
18
+ gem install ezruby
19
+
20
+
10
21
  == Simple examples
11
22
 
12
23
  ==== A simple encrypted class
data/lib/CVS/Entries CHANGED
@@ -1,3 +1,3 @@
1
- /active_crypto.rb/1.3/Sun Oct 30 22:41:10 2005//
2
1
  /ezcrypto.rb/1.4/Sun Oct 30 22:24:34 2005//
2
+ /active_crypto.rb/1.4/Wed Nov 2 09:12:07 2005//
3
3
  D
data/lib/active_crypto.rb CHANGED
@@ -125,6 +125,12 @@ Creates a key for object based on given password and an optional salt.
125
125
  end
126
126
 
127
127
  =begin rdoc
128
+ Decodes the Base64 encoded key and uses it as it's session key
129
+ =end
130
+ def set_encoded_key(enc)
131
+ set_session_key(EzCrypto::Key.decode(enc))
132
+ end
133
+ =begin rdoc
128
134
  Sets a session key for the object. This should be a EzCrypto::Key instance.
129
135
  =end
130
136
  def set_session_key(key)
data/rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rake/contrib/rubyforgepublisher'
8
8
 
9
9
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
10
10
  PKG_NAME = 'ezcrypto'
11
- PKG_VERSION = '0.2' + PKG_BUILD
11
+ PKG_VERSION = '0.2.1' + PKG_BUILD
12
12
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
13
13
 
14
14
  RELEASE_NAME = "REL #{PKG_VERSION}"
@@ -31,7 +31,7 @@ Rake::TestTask.new { |t|
31
31
  Rake::RDocTask.new { |rdoc|
32
32
  rdoc.rdoc_dir = 'doc'
33
33
  rdoc.title = "EzCrypto - Simplified Crypto Library"
34
- rdoc.options << '--line-numbers --inline-source --main README'
34
+ rdoc.options << '--line-numbers --inline-source --main README --template=jamis'
35
35
  rdoc.template = "#{ENV['template']}.rb" if ENV['template']
36
36
  rdoc.rdoc_files.include('README')
37
37
  rdoc.rdoc_files.include('README_ACTIVE_CRYPTO')
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: ezcrypto
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.2"
7
- date: 2005-10-30
6
+ version: 0.2.1
7
+ date: 2005-11-02
8
8
  summary: Simplified encryption library.
9
9
  require_paths:
10
10
  - lib