Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

v0.2 Encryption Types and A Bit About Encryption

dougc84 edited this page Dec 5, 2011 · 2 revisions

In version 0.2, there is a new configuration option:

CarrierWave::SecureFile.configure do |config|
	config.encryption_type = "blowfish"
end

encryption_type can be:

  • blowfish
  • rijndael
  • gost

If this parameter is not set, >0.2 will set the encryption type to blowfish. Blowfish is default as it is the fastest.

In brief testing, I got the following results on a mediocre upload speed (maybe around 6mbps?) with a 1.1mb JPG file:

  • Blowfish: 12942ms Upload, 9872ms Download
  • Gost: 23035ms Upload, 15473ms Download
  • Rijndael: 43207ms Upload, 46816ms Download

While Rijndael and Gost are more complex algorithms that may provide more security, Blowfish typically provides the fastest encryption and decryption.

Clone this wiki locally