shlu's note

sqlcipher 3.x

64000,1024,sha1

PRAGMA类参数解析核心函数

sqlcipher_codec_pragma:https://github.com/sqlcipher/sqlcipher/blob/master/src/crypto.c#L89

PRAGMA key/rekey解析位置

注意事项

iOS明文头问题

PRAGMA key = 'test';
PRAGMA cipher_plaintext_header_size = 32;
PRAGMA cipher_salt = "x'01010101010101010101010101010101'";

具体参考官方文档sqlcipher-api/#cipher_plaintext_header_size

声明:转载请注明出处,原文地址:shlu's note