[Box Backup] Box Backup on Rails - Part 2
Mon, 19 Mar 2007 16:49:42 +0100
I just re-visited the webbased application we put together a short while
The application felt very slow. The reason for this we discovered was the
ruby crypt library is a pure ruby implementation and therefore really slow.
the "ezcrypt" libraries available which are a wrapper towards the OpenSSL
cannot be used since the "openssl" layer placed on top of the "raw" crypt
routines imposes a lot of restrictions on key length etc and therefore
Our solution was to create a small ".so" file which wraps the AES and
functions to be directly accessed from Ruby. This improved performance
more than 100 times. If the ".so" file is not available it will fallback to
slow pure Ruby crypt library.
Also, now files can be downloaded in the application interface. Only one
file at a time can be downloaded currently. The file will be extracted on
web server and then be re-compressed using "zip" when sent to the client.
"admin"/"bbadmin" - Admin account
"demo"/"bbdemo" - User account