Store with encryption and access a lot of big data using ruby
Which options do I have if I need to store a lot of files or big data chunks with encryption, access them fast and have it all in one file? Something like Sqlite with encryption and optimized for big chunks of data. Also I need 开发者_JAVA技巧ruby binding.
If you like SQLite, why don't just use SQLite? Since it does have a BLOB
datatype, you can always store your encrypted data as a BLOB
and decrypt it upon retrieval. Just have Ruby do all the encryption and decryption.
I am not sure where you would want the key(s) to be, but you can store them in another column if you need a different key for every "chunk," or have one key for the entire application (in this case you could have it configurable on Ruby).
精彩评论