Sora Watermark Remover - Allows you to remove the watermark from Sora videos.Try Now

CurateClick

github.com favicon

officecrypto-tool

officecrypto-tool 是一个 JavaScript 库,用于对 Office 文件(Excel、PPT、Word)进行加解密操作。支持多种文件格式的加解密,API 设计简单易用,兼容 WPS 和 MS Office。

Check out officecrypto-tool on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

介绍officecrypto-tool 是一个 JS 库,用于 office 文件(excel/ppt/word)的加解密。支持excel(xls(x)),word(doc(x)),ppt(ppt(x)) 文件的解密,支持 xlsx,docx,pptx 格式的加密。受 xlsxxlsx-populate, 的启发,API 设计也很简单,加解密导出的文件,支持WPS 和 MS Office 打开。## 安装npm/yarn/pnpm install officecrypto-tool## 示例const officeCrypto = require('officecrypto-tool');const fs = require('fs').promises;// 解密一个带密码加密的文件(async ()=>{ const input = await fs.readFile(`pass_test.xlsx`); const output = await officeCrypto.decrypt(input, {password: '123456'}); await fs.writeFile(`out_success.xlsx`, output);})()// 使用密码加密一个文件(async ()=>{ const input = await fs.readFile(`test.xlsx`); const output = officeCrypto.encrypt(input, {password: '123456'}); await fs.writeFile(`standard_out_success.xlsx`, output);})()// 提供 isEncrypted API 判断一个文件是否是加密的,支持所有类型(async ()=>{ const input = await fs.readFile(`encrypted_test.xlsx`); const isEncrypted = officeCrypto.isEncrypted(input); // output: true const input1 = await fs.readFile(`not_encrypted_test.xlsx`); const isEncrypted1 = officeCrypto.isEncrypted(input1); // output: false})()## 相关链接- GitHub 仓库- NPM 链接- 更多详细教程和示例

Latest Weekly Picks

pslscale.com favicon
Weekly Pick

使用 Gemini 3 Pro 分析八字命理

人生 K 线
seedance15.ai favicon
Weekly Pick

Create Cinematic AI Videos from Text or Images with Seedance 1.5

Seedance 1.5 AI
tatted.ai favicon
Weekly Pick

The Tatted AI Tattoo Generator is a tool that allows you to create beautiful custom tattoos within seconds.

Tatted
pslscale.com favicon
Weekly Pick

Discover your PSL (Perceived Sexual Market Value) score with our AI-powered facial analysis

PSL Scale

IPYNB to PDF Converter – Free & Secure

www.reverie.im favicon
Weekly Pick

Dream It, Chat It, Create It

Reverie
make.ink favicon
Weekly Pick

Your AI tattoo generator for pro-grade concepts

make ink
sellfy.com favicon
Weekly Pick

A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.

Sellfy