标签:不用 closed targe htm encrypted 程序 部分 语法 aes
using (SQLiteConnection connection = new SQLiteConnection(dbFileConnectionString)) { connection.Open(); connection.ChangePassword(GenerateEncryptedDBPwd()); connection.Close(); }
System.Security.Principal.WindowsIdentity currentUser = System.Security.Principal.WindowsIdentity.GetCurrent(); string sid = currentUser.User.ToString();
SQLiteConnectionStringBuilder builder = SQLiteFactory.Instance.CreateConnectionStringBuilder() as SQLiteConnectionStringBuilder; // set up connection string for user data db in code builder.DataSource = userDataDBFilePath; builder.Password = GenerateEncryptedDBPwd(); userDataDB = new UserDataContext(builder.ToString());
标签:不用 closed targe htm encrypted 程序 部分 语法 aes
原文地址:https://www.cnblogs.com/wyp1988/p/9951625.html