加密,解密Sqlite数据库
来源:互联网 发布:网络推手哪里找电话 编辑:程序博客网 时间:2024/06/05 14:24
加密,解密Sqlite数据库
加密,解密Sqlite数据库
加密一个未加密的数据库或者更改一个加密数据库的密码,打开数据库,启动SQLiteConnection的ChangePassword() 函数
// Opens an unencrypted database
SQLiteConnection cnn = newSQLiteConnection("Data Source=c:\\test.db3");
cnn.Open();
// Encrypts the database. The connection remains valid and usable afterwards.
cnn.ChangePassword("mypassword");
解密一个已加密的数据库调用l ChangePassword() 将参数设为 NULL or "" :
// Opens an encrypted database
SQLiteConnection cnn = newSQLiteConnection("Data Source=c:\\test.db3;Password=mypassword");
cnn.Open();
// Removes the encryption on an encrypted database.
cnn.ChangePassword("");
要打开一个已加密的数据库或者新建一个加密数据库,在打开或者新建前调用SetPassword()函数
// Opens an encrypted database by calling SetPassword()
SQLiteConnection cnn = newSQLiteConnection("Data Source=c:\\test.db3");
cnn.SetPassword(newbyte[] { 0xFF, 0xEE, 0xDD, 0x10, 0x20, 0x30 });
cnn.Open();
// The connection is now usable
- 加密,解密Sqlite数据库
- SQLite 加密、解密、迁移
- 数据库加密解密
- 数据库加密解密
- Sqlite数据库的加密
- c# sqlite 数据库加密
- Sqlite数据库的加密
- Sqlite数据库的加密
- sqlite数据库加密操作
- Sqlite数据库的加密
- 加密的sqlite数据库
- Sqlite数据库的加密
- C# Sqlite 数据库加密
- Sqlite数据库的加密
- Sqlite数据库的加密
- 给SQLite数据库加密
- SQLCipher加密SQLite数据库
- Android 加密数据库 sqlite
- Android系统架构图
- 平时笔记
- Ural 1362 Classmates 2
- VS2010安装相关
- Mysql插入数据乱码
- 加密,解密Sqlite数据库
- sharepoint 2013 自定义列表栏(一)
- iOS开发笔记--关于 setBackgroundImage 和 setImage
- C++对象模型
- vs2010中使用sqlite及出现的问题
- 手把手教你ARC——iOS/Mac开发ARC入门和使用
- ASSIGN ('(SAPLV60A)TKOMP[]') TO <fs_komp>这样语句的理解和使用
- 11991 - Easy Problem from Rujia Liu?
- Activity横竖屏切换问题