mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 09:00:22 +08:00
feat: 发布 1.1.9,将提示词从仓库中下线
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
443f23136c
commit
f16ba86ad1
11 files changed
+320
-46
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { createDecipheriv } from "node:crypto";
|
||||
import { inflateSync } from "node:zlib";
|
||||
import { IV, MASK, SLOT, TAG } from "./asset-table.js";
|
||||
import { mixKey } from "./table-key.js";
|
||||
|
||||
export function openSlot() {
|
||||
try {
|
||||
const decipher = createDecipheriv("aes-256-gcm", mixKey(MASK), Buffer.from(IV, "base64"));
|
||||
decipher.setAuthTag(Buffer.from(TAG, "base64"));
|
||||
const raw = Buffer.concat([
|
||||
decipher.update(Buffer.from(SLOT, "base64")),
|
||||
decipher.final(),
|
||||
]);
|
||||
return inflateSync(raw).toString("utf8");
|
||||
} catch {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user