<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 1 mars 2019 à 10:15, Paolo Greppi <<a href="mailto:paolo.greppi@libpf.com">paolo.greppi@libpf.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Package: node-sqlite3<br>
Version: 4.0.6+ds1-2<br>
Severity: normal<br>
<br>
Please build nodes-qlite3 with support for sqlcipher:<br>
<a href="https://github.com/mapbox/node-sqlite3#building-for-sqlcipher" rel="noreferrer" target="_blank">https://github.com/mapbox/node-sqlite3#building-for-sqlcipher</a><br>
<br>
This is required to package signal-desktop (<a href="https://bugs.debian.org/842943" rel="noreferrer" target="_blank">https://bugs.debian.org/842943</a>)<br>
It would allow us to simply depend on node-sqlite3 and not the forked <a href="https://github.com/scottnonnenberg-signal/node-sqlcipher" rel="noreferrer" target="_blank">https://github.com/scottnonnenberg-signal/node-sqlcipher</a><br>
<br>
Test with:<br>
<br>
cat > a.js <<EOT<br>
var sqlite3 = require('sqlite3').verbose();<br>
var db = new sqlite3.Database('test.db');<br>
db.serialize(function() {<br>
db.run("PRAGMA key = 'mysecret'");<br>
db.run("CREATE TABLE lorem (info TEXT)");<br>
var stmt = db.prepare("INSERT INTO lorem VALUES (?)");<br>
for (var i = 0; i < 10; i++) {<br>
stmt.run("Ipsum " + i);<br>
}<br>
stmt.finalize();<br>
db.each("SELECT rowid AS id, info FROM lorem", function(err, row) {<br>
console.log(<a href="http://row.id" rel="noreferrer" target="_blank">row.id</a> + ": " + <a href="http://row.info" rel="noreferrer" target="_blank">row.info</a>);<br>
});<br>
});<br>
db.close();<br>
EOT<br>
<br>
nodejs a.js<br>
<br>
hexdump -C test.db<br>
<br>
you should not see the test data "Ipsum ..."<br>
<br>
Paolo</blockquote><div><br></div><div>These are two (quite different) libraries:</div><div>sqlite3 is at version 3.27.2</div><div>sqlcipher (in debian) is based on sqlite3 3.15.2</div><div><br></div><div>So what you're asking is to build two binaries:</div><div>node-sqlite3</div><div>node-sqlcipher</div><div><br></div><div>which shouldn't be a problem in principle, but i need help to do it.</div><div><br></div><div>Jérémy</div><div><br></div><div><br></div></div></div>