密码SQLite读取编码数据

时间:2014-03-31 20:40:27

标签: ios

有人可以帮助我在哪里可以输入此密码

我编码我的数据和打击代码读取正常dataabse但我想读取编码的密码Sqlite数据,但我不知道我怎么能

这是密码

const char* key = [@"pasword123" UTF8String];

 if (sqlite3_open([path UTF8String], &database) == SQLITE_OK) {

        const char *sql = "SELECT * FROM contents";

        sqlite3_stmt *searchStatement;

        if (sqlite3_prepare_v2(database, sql, -1, &searchStatement, NULL) == SQLITE_OK) {

            favTitle = [[NSMutableArray alloc] init];

            while (sqlite3_step(searchStatement) == SQLITE_ROW) {
                NSString *title = [NSString stringWithUTF8String:(char *)sqlite3_column_text(searchStatement, 1)];

                [favTitle addObject:title];

            }
        }else{
            NSLog(@"NO");
        }
        sqlite3_finalize(searchStatement);
        sqlite3_close(database);

    }

谢谢

0 个答案:

没有答案