0

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.

Acnologia
  • 302
  • 1
  • 6
  • 17

2 Answers2

-1

You can find instructions on building SQLCipher for PHP here

Chris
  • 5,584
  • 9
  • 40
  • 58
Stephen Lombardo
  • 1,503
  • 8
  • 7
-1

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";
}
?>
ShaunOReilly
  • 2,186
  • 22
  • 34