ezcrypto 0.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -0
- data/README +10 -0
- data/README_ACTIVE_CRYPTO +11 -0
- data/lib/CVS/Entries +1 -1
- data/lib/active_crypto.rb +6 -0
- data/rakefile +2 -2
- metadata +2 -2
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
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')
|