lib/pwkeep/storage.rb in pwkeep-0.0.1 vs lib/pwkeep/storage.rb in pwkeep-0.0.2
- old
+ new
@@ -146,10 +146,10 @@
# write system
system_h = system_to_hash(system)
data = { :system => system, :data => data, :stored_at => Time.now }
- encrypt_system(path.join(system_h), data)
+ encrypt_system(path.join(system_h), data.to_json)
end
def valid?
path.join('private.pem').exist?
end