修正SM4解密时产生错误结果的bug
This commit is contained in:
1 parent
f0e4a777d9
commit
b29add4ae5
5 files changed
+139
-107
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import sha256 from 'crypto-js/sha256.js';
|
||||
import Database from "better-sqlite3";
|
||||
|
||||
|
||||
const dbPath = "./miaoShare.db";
|
||||
|
||||
const db = new Database(dbPath, { verbose: null });
|
||||
const stmt_ = db.prepare(`DELETE FROM USERS WHERE user_id = ?`);
|
||||
|
||||
let userList = [
|
||||
['admin'],["guest"]
|
||||
]
|
||||
for(let i of userList){
|
||||
stmt_.run(...i)
|
||||
}
|
||||
Reference in new issue
Block a user