Home     DB      Replicator      CRM      Solutions  

License Policy
One$ DB FAQ
Pricing Policy
Support Overview
Features
Documentation
Compatible Products
Data Migration
Features Comparison
Performance Comparison
Daffodil DB
User Guide > Features > Encryption Support > Database creation by get connection method of JDBC 3.0
 
Database creation by get connection method of JDBC 3.0


User can encrypt a database to prevent any unauthorized access to data stored on a disk. Daffodil DB allows user to make use of above mentioned encryption algorithms. Encryption algorithms use a block of bytes as the secret key. The key length is algorithm-specific; popular algorithms use keys of 64,128, or 256 bits in length.

Important: Users need to set ENCRYPTIONSUPPORT property as true at time of creation of a Daffodil DB database.

Example:

String url = "jdbc:daffodilDB_embedded:STUDENTDB;create=true";
String driver = "in.co.daffodil.db.jdbc.DaffodilDBDriver";
Properties prop = new Properties();
prop.setProperty("user","daisy");
prop.setProperty("password","daisy");
prop.setProperty("create","true");
prop.setProperty("ENCRYPTIONSUPPORT","true");
prop.setProperty("ENCRYPTIONALGO","tea");
prop.setProperty("ENCRYPTIONKEY","daisy");
Class.forName(driver);
java.sql.Connection con = DriverManager.getConnection(url,prop);

In the above stated example, a database named STUDENTDB is created which will be stored in encrypted form using TEA encryption algorithm & encryption key is daisy.

 

 
Web Database | SQL Database | Embedded Database
©2006 Daffodil Software Ltd. Contact Us | Disclaimer | Sitemap