0.0
No release in over a year
A Lockbox wrapper to read or write an encrypted file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.3, >= 0.3.3
~> 0.6, >= 0.6.8
 Project Readme

Introducing the lockboxfile gem

require 'lockboxfile'

key = Lockbox.generate_key
#=> "d506414ad742dbdb64208aa89e18a121fa351238ac857183dc5f5dffa74b2162" 

LockboxFile.new(key).write '/tmp/funtime2.txt', 'Hello World!'

LockboxFile.new(key).read '/tmp/funtime2.txt'
#=> 'Hello World!'

key = "d506414ad742dbdb64208aa89e18a121fa351238ac857183dc5f5dffa74b2162" 
# encrypt a unencrypted file and then delete the unencrypted file
LockboxFile.new(key).encrypt('/tmp/funtime.txt','/tmp/funtime3.txt', delete: true)

LockboxFile.new(key).read '/tmp/funtime3.txt'

Resources

lockbox lockboxfile gem encryption encrypt decrypt file