Documente Academic
Documente Profesional
Documente Cultură
How-to-Build-CryptDB
Site:http://css.csail.mit.edu/cryptdb/
Indruction:(come from source site)
CryptDB
Online applications are vulnerable to theft of sensitive information because adversaries
can exploit software bugs to gain access to private data, and because curious or
malicious administrators may capture and leak data. CryptDB is a system that provides
practical and provable confidentiality in the face of these attacks for applications backed
by SQL databases. It works by executing SQL queries over encrypted data using a
collection of efficient SQL-aware encryption schemes. CryptDB can also chain encryption
keys to user passwords, so that a data item can be decrypted only by using the
password of one of the users with access to that data. As a result, a database
administrator never gets access to decrypted data, and even if all servers are
compromised, an adversary cannot decrypt the data of any user who is not logged in. An
analysis of a trace of 126 million SQL queries from a production MySQL server shows
that CryptDB can support operations over encrypted data for 99.5% of the 128,840
columns seen in the trace. Our evaluation shows that CryptDB has low overhead,
reducing throughput by 14.5% for phpBB, a web forum application, and by 26% for
queries from TPC-C, compared to unmodified MySQL. Chaining encryption keys to user
passwords requires 11-13 unique schema annotations to secure more than 20 sensitive
fields and 2-7 lines of source code changes for three multi-user web applications.
Before install CryptDB on MySQL DB, First you need to make sure your system have following
packet, my system is:
Intel:P4 3.0G
Ram :1GB
HD:160GB,5400rpm
OS:Ubuntu 11.10
Step 1 - Check system's packet on last version
open terminal windows(ctrl+alt+t), enter command in
sudo apt-get update
sudo apt-get upgrade
Step 2 - Install following packets
all packet need last version
1. Bazaar
2. Bison
3. Gtk-doc
4. Autoconf
5. Automake
6. Libtool
7. Flex
8. Gcc-4.6
9. G++-4.6
10.Cmake
11. G++
and
12 . apt-get install liblua5.1-0-dev libntl-dev libmysqlclient-dev \
libssl-dev libbsd-dev libevent-dev libglib2.0-dev
13. apt-get install \
pkg-config \
liblua5.1-0 \
liblua5.1-dev \
libevent-dev \
libevent1 \
libglib2.0-0 \
libglib2.0-dev \
libmysqlclient-dev \
Step 3 - download Program
cd cryptdb/conf
open config.mk.sample and change path for MYSRC (MYSRC is set to your mysql folder
path) , then save as config.mk <--very important
cd cryptdb
make
sudo make install
27 :
Sayantan's Mukh 20135 1 12:42
Hi, I was trying to install in the said manner. I came across some issues that I couldn't
resolve.
1. after make in the 'mysql' installation, we don't have to do any 'make install'?
2. during cryptdb install (step 6), 'sudo make install' is returning with "install: cannot create
regular file '/usr/lib/mysql/plugin': No such file or directory' though I did everything the way it
has been written here or in the doc/BUILD in cryptdb.
Can you please help me with this?
Regards,
Sayantan Mukherjee
Normal Human
201351 10:22
Hi Sayantan Mukherjee
About Q1, you need do "make install", but sorry, I really forget the reason
Q2. you sure you install Mysql "server" and Mysql "client?"
instantiation [-fpermissive]
In file included from /usr/include/c++/4.7/bits/char_traits.h:41:0,
from /usr/include/c++/4.7/string:42,
from /home/peb/cryptdb-inst/CryptDB/crypto/ope.hh:3,
from crypto/ope.cc:2:
/usr/include/c++/4.7/bits/stl_algobase.h:187:5: note: template const _Tp& std::min(const
_Tp&, const _Tp&) declared here, later in the translation unit
Can you please help me ?
Regards,
PEB
Normal Human
20138 1 9:17
Normal Human
20138 1 9:21
there's no need to worry; gcc tries to be more law obedient than the actual law.
Normal Human
20138 10 9:01
Can you post error message when you install cryptdb, because I'm not sure your
system detail, you may face some problem that I never meet
Normal Human
20138 11 8:55
Normal Human
20138 11 9:03
"http://es.csail.mit.edu/mysql-5.5.14.tar.gz "
if you download from this link
it's only have some libary the cryptdb will use
so need download "MYSQL client" yourself
/////////////////////////////////////////////
some detail need user to find and install when you use
,and cryptdb's "README" not mention about it
Normal Human
20138 12 1:27
sorry, I give you wrong answer, you need install mysql server, not mysql client,
this is my fault
Install Mysql:http://askubuntu.com/questions/174138/how-to-install-mysql
------------------------------------------------------After install ,use "whereis" or "find" in terminal to find
just like "whereis mysql.h" or "find mysql.h"
then, use cp to copy file to target folder
"cp [mysql.h file path][target folder]"
Normal Human
20138 12 3:13
Normal Human
20138 1 9:21
No
Normal Human
2013113 6:38
looks like you have SQL syntax error when you try to input
1. first, make sure you already startup encrypt mode(follow the manul in crypt)
2.if yes, check your SQL syntax
>>CREATE DATABASE IF NOT EXISTS " + your_dbname + ";"
Normal Human
20131225 5:30
Normal Human
20141 9 5:56
hi 2016124 3:33
cp -R .../cryptdb/parser/mysql_mods/* mysql-5.5.14/
(Atom)