This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Ready for initial release

  • Loading branch information...
James Harton
James Harton committed Aug 23, 2009
1 parent 7c6f9e4 commit e28ca38c15c3b2cb7cb0b5a4c8f1e8978b4c3b88
Showing with 4 additions and 2 deletions.
  1. +3 −0 README
  2. +1 −2 lib/lockbox.rb
  3. 0 { → test}/private.pem
  4. 0 { → test}/public.pem
3 README
@@ -6,6 +6,9 @@ to encrypt and decrypt strings.
This is just a quick hack, I decided not to go for anything more
elaborate because it met the minimum requirements of what I'm building
and nothing more.
You can always get the latest version of this plugin from Github:
- http://github.com/jamesotron/Lockbox/tree/master [web url]
- git://github.com/jamesotron/Lockbox.git [clone url]
Example
=======
@@ -16,8 +16,7 @@ def self.unlocked?
end
def self.try? (pass_phrase)
#config = YAML::load_file("#{RAILS_ROOT}/config/lockbox.yml")[RAILS_ENV]
config = { 'public_key_path' => 'public.pem', 'private_key_path' => 'private.pem' }
config = YAML::load_file("#{RAILS_ROOT}/config/lockbox.yml")[RAILS_ENV]
if pass_phrase.nil? and config['pass_phrase'].nil?
false
else
File renamed without changes.
File renamed without changes.

0 comments on commit e28ca38

Please sign in to comment.