From sylvain.mouquet@gmail.com Sat May 19 12:34:47 2012 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ADE75750115 for ; Sat, 19 May 2012 12:34:47 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077, TW_QL=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X9fS12V1nVlU for ; Sat, 19 May 2012 12:34:34 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 49C8E75042C for ; Sat, 19 May 2012 12:34:25 +0000 (UTC) Received: by yhgm50 with SMTP id m50so5556160yhg.27 for ; Sat, 19 May 2012 05:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9sIecHY5TbtnNq0KPYr2isIQdhPc8wiLJQIfnwFly04=; b=RJPf5ZKLU1tVck20k5F55uFRVhk1q9ZzquL2z+aqXNUT8Qgcpo19TVJ8xTZFwJLitt C2oud0qQXiN4OKMC4cluJfenF/Ipdo8k+RqSn3utf0tj+U0XNoX0Y/JH35N2zIFNmsjs lncznDFPs2GKJhB7XIxJfESCXFk793S1v4PzA113K7y1P2J+WzqNPOQEgByQ8hi5ctUa xi9mDgAZhfYIw3yKjo7N3GlDreIJWmo6q+9LzVI/5aYAufZY1ThIVV/Dfsb707VHHVkZ DxUKG1ZQolISODoXwbRZTo9uS2rVyJs6x3pLGVJogPvpBFxcWsD2cnglupztimIDJLFh 477w== MIME-Version: 1.0 Received: by 10.43.131.194 with SMTP id hr2mr9463922icc.34.1337430864049; Sat, 19 May 2012 05:34:24 -0700 (PDT) Received: by 10.231.91.79 with HTTP; Sat, 19 May 2012 05:34:24 -0700 (PDT) Date: Sat, 19 May 2012 14:34:24 +0200 Message-ID: From: sylvain mouquet To: gnome-db-list Content-Type: multipart/alternative; boundary=20cf307f35fa9034af04c062e3f6 Subject: [gnome-db] Libgdamm + SQLCipher X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2012 12:34:48 -0000 --20cf307f35fa9034af04c062e3f6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I am looking for using the sqlcipher with libgdamm but i dont found example for doing it. When i try ( http://developer-next.gnome.org/libgda/5.0/provider_notes_sqlcipher.html) : gda-sql-4.0 "SQLCipher://DB_NAME=3Dtestcrypt" i get this error : "Impossible d'ouvrir la connexion 1 : Pas de fournisseur =AB SQLCipher =BB install=E9". How can i do for adding the SQLCipher provider ? Thanks, Sylvain --20cf307f35fa9034af04c062e3f6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I am looking for using the sqlcipher with libgdamm but i dont found examp= le for doing it.
When i try (http://developer-next.gnome.org/libgda/5.0/provider_notes_sqlcipher.html= ) : gda-sql-4.0 "SQLCipher://DB_NAME=3Dtestcrypt"
i get this error : "Impossible d'ouvrir la connexion 1=A0: Pas=
 de fournisseur =AB=A0SQLCipher=A0=BB install=E9". How can i do for ad=
ding the SQLCipher provider ?
Thanks,=
Sylvain
--20cf307f35fa9034af04c062e3f6-- From vmalerba@gmail.com Sat May 19 14:01:05 2012 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2C9C07501B5 for ; Sat, 19 May 2012 14:01:05 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077, TW_QL=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T9p3ZimJwu10 for ; Sat, 19 May 2012 14:01:00 +0000 (UTC) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by menubar.gnome.org (Postfix) with ESMTP id B09E67501A6 for ; Sat, 19 May 2012 14:00:52 +0000 (UTC) Received: by yenl8 with SMTP id l8so5480742yen.27 for ; Sat, 19 May 2012 07:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ny2odmKH5lzsKgLruJ3+7hkqBjRVwm6+pu/3APpdZn8=; b=QTtyvXd1gowfEBaDv+NIewu9jbaCRROxfJuv3N8xtUz27UEl53c9NG3XspyHAukdFD KwA+D47K9vA0R10Nj+R7w1tQCWbGnaV7Pitv1hB+jxRJLDDcBGUSwZ1GTqWrCrYxiM38 Wpg0nX3GeC+lzXGMSveaxPOGelKKgx+iocMAccrnWV9lxPnK6vTk9zbv1Y6EHKBCytdg Ygzdr0nd9z0eVSAH7/amOK8neouUlxoUG19y4+k0ROKqMJETkhLKz2EdD9qnRNrpi1hH hETAcsz1wpzWwMVNdy38/67qOWD5lEpoUfxTFMZk0H2NnfBGA/ml0/PvfBT8z2qG5J5p 0AOA== MIME-Version: 1.0 Received: by 10.101.132.28 with SMTP id j28mr5088139ann.18.1337436050772; Sat, 19 May 2012 07:00:50 -0700 (PDT) Received: by 10.147.99.12 with HTTP; Sat, 19 May 2012 07:00:50 -0700 (PDT) In-Reply-To: References: Date: Sat, 19 May 2012 16:00:50 +0200 Message-ID: From: Vivien Malerba To: sylvain mouquet Content-Type: multipart/alternative; boundary=0016e68e9194b7522004c0641869 Cc: gnome-db-list Subject: Re: [gnome-db] Libgdamm + SQLCipher X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2012 14:01:05 -0000 --0016e68e9194b7522004c0641869 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 19 May 2012 14:34, sylvain mouquet wrote: > Hi, > > I am looking for using the sqlcipher with libgdamm but i dont found > example for doing it. > When i try ( > http://developer-next.gnome.org/libgda/5.0/provider_notes_sqlcipher.html)= : gda-sql-4.0 "SQLCipher://DB_NAME=3Dtestcrypt" > > i get this error : "Impossible d'ouvrir la connexion 1 : Pas de fournisse= ur =AB SQLCipher =BB install=E9". How can i do for adding the SQLCipher pro= vider ? > > The reason is probably you don't have the SQLCipher provider installed. I= f you have installed Libgda using your distribution's, check you have installed the package named "libgda-sqlcipher" (or similar). If you have installed Libgda from sources, make sure you have compiled the SQLCipher provider as well. In any case, you can always obtain the list of installed providers using the "gda-sql-4.0 -l" command. Regards, Vivien --0016e68e9194b7522004c0641869 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 19 May 2012 14:34, sylvain mouquet <sylvain.mouquet@gmail.com> wrote:
Hi,

I am looking for using the sqlcipher with libgdamm but i dont found examp= le for doing it.
When i try (http://developer-next.gnome.org/libgda/5.0/provider_no= tes_sqlcipher.html) : gda-sql-4.0 "SQLCipher://DB_NAME=3Dte= stcrypt"
i get this error : &q=
uot;Impossible d'ouvrir la connexion 1=A0: Pas de fournisseur =AB=A0SQL=
Cipher=A0=BB install=E9". How can i do for adding the SQLCipher provid=
er ?
The reason is probably you don't have the SQLCipher p= rovider installed. If you have installed Libgda using your distribution'= ;s, check you have installed the package named "libgda-sqlcipher"= (or similar). If you have installed Libgda from sources, make sure you hav= e compiled the SQLCipher provider as well.

In any case, you can always obtain the list of installed providers usin= g the "gda-sql-4.0 -l" command.

Regards,

Vivien
= =A0
--0016e68e9194b7522004c0641869-- From vmalerba@gmail.com Sat May 19 14:26:45 2012 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 94DB1750119 for ; Sat, 19 May 2012 14:26:45 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077, TW_QL=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ToX2Blc2YhSd for ; Sat, 19 May 2012 14:26:30 +0000 (UTC) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by menubar.gnome.org (Postfix) with ESMTP id B1872750107 for ; Sat, 19 May 2012 14:26:22 +0000 (UTC) Received: by yenl8 with SMTP id l8so5494953yen.27 for ; Sat, 19 May 2012 07:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Z54pwTr6Praap0nmUKpsCah8dRfk0Srk43W/EZWsZ1Y=; b=vefa1jKkJlJ57H2I1f9bj75uhl0ndUIEdUtqHr+wzTUh2wX9jI6PDyFdrYO5GI2H/x pFi/F108hmIEaZF+RzXXhbG7uh4tdRKmpA3ws1BOoaJgt/8yR0BnMDYqrGsqHDyELhsk /fL+uh2/OYntYTbgKI2TfnT6A0qMQ5Ium7qSZTm+JIJ/uqGV2rRHuqghwGWsyvTJj4rc upmsa81WQGBp55GVJU5bbQLK+wnzzLAKn5ZYVLWM2MZA8Qc28qufUaZOF3AGboTsbEZh eDtRH7B78okRgT1qmQsvfGBZdermIQdOCwR/eMz1QwM3xnq5Zi0gV0uzlBTq1Na0EGL/ Bf9w== MIME-Version: 1.0 Received: by 10.236.165.102 with SMTP id d66mr16081496yhl.54.1337437581203; Sat, 19 May 2012 07:26:21 -0700 (PDT) Received: by 10.147.99.12 with HTTP; Sat, 19 May 2012 07:26:21 -0700 (PDT) In-Reply-To: References: Date: Sat, 19 May 2012 16:26:21 +0200 Message-ID: From: Vivien Malerba To: sylvain mouquet Content-Type: multipart/alternative; boundary=20cf30563c37efd8d804c0647362 Cc: gnome-db-list Subject: Re: [gnome-db] Libgdamm + SQLCipher X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2012 14:26:45 -0000 --20cf30563c37efd8d804c0647362 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 19 May 2012 16:00, Vivien Malerba wrote: > > > On 19 May 2012 14:34, sylvain mouquet wrote: > >> Hi, >> >> I am looking for using the sqlcipher with libgdamm but i dont found >> example for doing it. >> When i try ( >> http://developer-next.gnome.org/libgda/5.0/provider_notes_sqlcipher.html= ): gda-sql-4.0 "SQLCipher://DB_NAME=3Dtestcrypt" >> >> i get this error : "Impossible d'ouvrir la connexion 1 : Pas de fourniss= eur =AB SQLCipher =BB install=E9". How can i do for adding the SQLCipher pr= ovider ? >> >> The reason is probably you don't have the SQLCipher provider installed. > If you have installed Libgda using your distribution's, check you have > installed the package named "libgda-sqlcipher" (or similar). If you have > installed Libgda from sources, make sure you have compiled the SQLCipher > provider as well. > > In any case, you can always obtain the list of installed providers using > the "gda-sql-4.0 -l" command. > Read "gda-sql-4.0 -L" insdead (upper case L). Regards, Vivien --20cf30563c37efd8d804c0647362 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 19 May 2012 16:00, Vivien Malerba <= vmalerba@gmail.com> wrote:


On 19 May 2012 14= :34, sylvain mouquet <sylvain.mouquet@gmail.com> wro= te:
Hi,

I am looking for using the sqlcipher with libgdamm but i dont found examp= le for doing it.
When i try (http://developer-next.gnome.org/libgda/5.0/provider_no= tes_sqlcipher.html) : gda-sql-4.0 "SQLCipher://DB_NAME=3Dte= stcrypt"
i get this error : &q=
uot;Impossible d'ouvrir la connexion 1=A0: Pas de fournisseur =AB=A0SQL=
Cipher=A0=BB install=E9". How can i do for adding the SQLCipher provid=
er ?
The reason is probably you don't have the= SQLCipher provider installed. If you have installed Libgda using your dist= ribution's, check you have installed the package named "libgda-sql= cipher" (or similar). If you have installed Libgda from sources, make = sure you have compiled the SQLCipher provider as well.

In any case, you can always obtain the list of installed providers usin= g the "gda-sql-4.0 -l" command.
=
Read=A0 "gda-sql-4.0 -L" insdead (upper case L).
Regards,=

Vivien
--20cf30563c37efd8d804c0647362-- From sylvain.mouquet@gmail.com Mon May 21 21:36:02 2012 Return-Path: X-Original-To: gnome-db-list@gnome.org Delivered-To: gnome-db-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D0427750108 for ; Mon, 21 May 2012 21:36:02 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077, TW_QL=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4saspyDhmdwJ for ; Mon, 21 May 2012 21:35:47 +0000 (UTC) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id 3FF67750171 for ; Mon, 21 May 2012 21:35:47 +0000 (UTC) Received: by ggnm2 with SMTP id m2so7455777ggn.27 for ; Mon, 21 May 2012 14:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ExAUdQPiMVUYm9mssVMXLiBRdeS4k/dNmJWEU23eCr4=; b=WN4A08t7NnBaAh3sCUo3ZSbhs3xi0OfpZTaRI5zLqRIJEhnRVTFPeUdtTy6bQzX9gZ zH2ONg/xU5tFhtv6FxJtkUVmtv99vGcK+OZZXTR9DtTHq+e408s641XM9lNWi98rBZwv uPtVrwNBbCgFKO3aOTdriHSMb5dBgqDtb/Ycp/yrXRcxOwW8bVo7OjGeU1cVPjSArJLE k5jKUyS8bufuzlhfra2gHYBrPc4vSpFGBZ7Exv6nWsiJcKo6Db7PluiWIpIIasGRNVyh N4+z2x/sjvOjVNkE8Uupa+9DeoEll86hAFicUvUrNEMpFMXsHz1r+QIAHmq//FY8z0Mc On9Q== MIME-Version: 1.0 Received: by 10.50.6.230 with SMTP id e6mr7303197iga.17.1337636145561; Mon, 21 May 2012 14:35:45 -0700 (PDT) Received: by 10.231.34.140 with HTTP; Mon, 21 May 2012 14:35:45 -0700 (PDT) In-Reply-To: References: Date: Mon, 21 May 2012 23:35:45 +0200 Message-ID: From: sylvain mouquet To: Vivien Malerba Content-Type: multipart/alternative; boundary=e89a8f646b354b80bb04c092af93 Cc: gnome-db-list Subject: Re: [gnome-db] Libgdamm + SQLCipher X-BeenThere: gnome-db-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME-DB discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2012 21:36:03 -0000 --e89a8f646b354b80bb04c092af93 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I have downloaded and compiled libgda and libgdamm with SQLCipher provider. When i run : gda-sql-5.0 -L i have the SQLCipher enabled : Ldap =E2=94=82 Provider for database where tables are based on data contained in an LDAP direc SQLCipher =E2=94=82 Fournisseur pour SQLCipher SQLite =E2=94=82 Fournisseur pour bases de donn=C3=A9es SQLite Web =E2=94=82 Fournisseur pour serveurs mandataires de serveur Web (4 rows) But i dont know why i cannot to read and write a database with SQLCipher. My code : Gnome::Gda::init (); try { con =3D Gnome::Gda::Connection::open_from_string ("SQLCipher", "DB_DIR=3D.;DB_NAME=3Ddb5", "", Gnome::Gda::CONNECTION_OPTIONS_THREAD_SAFE); } catch (Gnome::Gda::ConnectionError e) { std::cout << "error =3D " << e.code() << endl; if (code =3D=3D Gnome::Gda::ConnectionError::CONNECTION_OPEN_ERROR = ){ std::cout << "error =3D " << "CONNECTION_OPEN_ERROR" << end= l; } con->statement_execute_select ("PRAGMA KEY=3D'demo'"); con->statement_execute_non_select ("CREATE TABLE sample(col1 TEXT"); At the first run, there is no error. At the second run, i get CONNECTION_OPEN_ERROR. When i try to connect to the database from command line, i cannot read the database : sqlite> PRAGMA KEY=3D'demo'; sqlite> .tables Error: file is encrypted or is not a database When i replace SQLCipher by SQLite it works but the database is not encrypted... 2012/5/19 Vivien Malerba > > > On 19 May 2012 16:00, Vivien Malerba wrote: > >> >> >> On 19 May 2012 14:34, sylvain mouquet wrote: >> >>> Hi, >>> >>> I am looking for using the sqlcipher with libgdamm but i dont found >>> example for doing it. >>> When i try ( >>> http://developer-next.gnome.org/libgda/5.0/provider_notes_sqlcipher.htm= l >>> ) : gda-sql-4.0 "SQLCipher://DB_NAME=3Dtestcrypt" >>> >>> i get this error : "Impossible d'ouvrir la connexion 1 : Pas de fournis= seur =C2=AB SQLCipher =C2=BB install=C3=A9". How can i do for adding the SQ= LCipher provider ? >>> >>> The reason is probably you don't have the SQLCipher provider installed. >> If you have installed Libgda using your distribution's, check you have >> installed the package named "libgda-sqlcipher" (or similar). If you have >> installed Libgda from sources, make sure you have compiled the SQLCipher >> provider as well. >> >> In any case, you can always obtain the list of installed providers using >> the "gda-sql-4.0 -l" command. >> > > Read "gda-sql-4.0 -L" insdead (upper case L). > Regards, > > Vivien > --=20 Cordialement, Sylvain --e89a8f646b354b80bb04c092af93 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

I have downloaded and compiled libgda and libgdamm with SQLCiphe= r provider.
When i run :
gda-sql-5.0 -L
i have the SQLCipher enabl= ed :=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0
Ldap=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =E2=94=82 P= rovider for database where tables are based on data contained in an LDAP di= rec
SQLCipher=C2=A0=C2=A0 =E2=94=82 Fournisseur pour SQLCipher=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SQLite=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =E2=94=82 Fournisseur pour bases de = donn=C3=A9es SQLite=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0
Web=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =E2=94=82 Fournisseur pour serveurs mandataires de serveur Web=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
(4 rows)

But i dont know why i cannot to read and write a database w= ith SQLCipher.

My code :

=C2=A0=C2=A0=C2=A0 Gnome::Gda::init = ();
=C2=A0=C2=A0=C2=A0 try {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 con =3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Gnome::Gda::Connection::open_f= rom_string ("SQLCipher",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 "DB_DIR=3D.;DB_NAME=3Ddb5", "", Gnome::= Gda::CONNECTION_OPTIONS_THREAD_SAFE);
=C2=A0=C2=A0=C2=A0 } catch (Gnome:= :Gda::ConnectionError e) {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 st= d::cout << "error =3D " << e.code()=C2=A0 << en= dl;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (code =3D=3D Gnome::Gda::Conn= ectionError::CONNECTION_OPEN_ERROR ){
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 std::cout <<= ; "error =3D " << "CONNECTION_OPEN_ERROR" <<= ; endl;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }
con->statemen= t_execute_select ("PRAGMA KEY=3D'demo'");
con->statement_execute_non_select ("CREATE TABLE sample(col1 TEXT&q= uot;);

At the first run, there is no error. At the second run, i get= CONNECTION_OPEN_ERROR.
When i try to connect to the database from comma= nd line, i cannot read the database :
sqlite> PRAGMA KEY=3D'demo';
sqlite> .tables
Error: fi= le is encrypted or is not a database

When i replace SQLCipher by SQL= ite it works but the database is not encrypted...


2012/5/19 Vivien Malerba <vmalerba@gmail.com>


On 19 May 2012 16:00, Vivien M= alerba <vmalerba@gmail.com> wrote:


On 19 May 2012 14:34, sylvain = mouquet <sylvain.mouquet@gmail.com> wrote:
Hi,

I am looking for using the sqlcipher with libgdamm but i dont found examp= le for doing it.
When i try (http://developer-next.gnome.org/libgda/5.0/provider_no= tes_sqlcipher.html) : gda-sql-4.0 "SQLCipher://DB_NAME=3Dte= stcrypt"
i get this error : &q=
uot;Impossible d'ouvrir la connexion 1=C2=A0: Pas de fournisseur =C2=AB=
=C2=A0SQLCipher=C2=A0=C2=BB install=C3=A9". How can i do for adding th=
e SQLCipher provider ?
The reason is probably you don't have the= SQLCipher provider installed. If you have installed Libgda using your dist= ribution's, check you have installed the package named "libgda-sql= cipher" (or similar). If you have installed Libgda from sources, make = sure you have compiled the SQLCipher provider as well.

In any case, you can always obtain the list of installed providers usin= g the "gda-sql-4.0 -l" command.

Read=C2=A0 "gda-sql-4.0 -L" insdead (upper case = L).
Regards,

Vivien



--
Cordialement,
Sylvai= n
--e89a8f646b354b80bb04c092af93--