From 7382be9d83bc5f95ad8d184b95c379ca5b9d1725 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 22 Jan 2011 18:24:55 -0200 Subject: Code split into backend, keyring and keyringer modules --- lib/keyring/crypt.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/keyring/crypt.rb (limited to 'lib/keyring/crypt.rb') diff --git a/lib/keyring/crypt.rb b/lib/keyring/crypt.rb new file mode 100644 index 0000000..5968730 --- /dev/null +++ b/lib/keyring/crypt.rb @@ -0,0 +1,10 @@ +module Keyring + class Crypt + def decrypt(filename) + file = Fs.new() + content = file.get_as_string(filename) + crypt = Backend::Crypt.new(nil) + return crypt.decrypt(content) + end + end +end -- cgit v1.2.3