xeodou / go-sqlcipher

Golang SQLCipher driver conforming to the built-in database/sql interface and using the latest sqlite3 code.
MIT License
224 stars 52 forks source link

PRAGMA key shall use quotes for key value #20

Closed torwald-sergesson closed 4 years ago

torwald-sergesson commented 4 years ago

Currently library does not allows to use any symbols except alphanumeric. Although it shall be supported according to SQLCipher documentation: https://www.zetetic.net/sqlcipher/sqlcipher-api/#PRAGMA_key For instance now it's impossible to use keys like in this example:

PRAGMA key = "x'2DD29CA851E7B56E4697B0E1F08507293D761A05CE4D1B628663F411A8086D99'";
xeodou commented 4 years ago

it's merged. Thanks @torwald-sergesson for the fix.