You can find instructions on building SQLCipher for PHP here
How to use SQLCipher on PHP for SQLite3
Question
how can I use SQLCipher on PHP on regular PHP, Apache installation or any other WAMP, ZendServer and so on... On Windows not linux?
OR
How can I use this method for encryption in PHP: http://www.sqlite.org/see/doc/trunk/www/readme.wiki
I need AES encryption for SQLite3.
Solution
OTHER TIPS
Try this, once installed and enabled in php mods on Wamp (should already be installed):
<?php
try {
$db = new SQLite3("demo.db");
$version = $db->query("PRAGMA cipher_version");
if($version){
var_dump($version->fetchArray());
} else {
throw new Exception($db->lastErrorMsg());
}
$db->close();
}
catch (Exception $e){
echo "Exception", $e->getMessage(), "\n";
}
?>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow