npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@johniexu/xtjk-decrypt

v1.8.1

Published

A data encrypt and decrypt CLI util based on Node.js.一款基于 Node.js 的数据加解密 CLI 工具

Downloads

3

Readme

@JohnieXu/xtjk-decrypt

NPM version NPM downloads

简体中文 | English

一款基于 Node.js 的数据加解密 CLI 工具,加解密算法使用 decrypt-core 实现

使用说明

安装

npm i -g @johniexu/xtjk-decrypt

安装完成后会生成一个全局可执行命令:xdc,使用 xdc --help 可以查看参数说明

示例

加密

xdc -e -k 123 // 然后输入任意字符串,回车即可对输入的字符串加密

解密

xdc -k 123 // 粘贴上一步得到的密文,回车即可对其进行解密

基础用法

xdc -k <KEY> [options]

命令 | 参数 | 功能 | 备注 ---- | ----- | ------ | ----- xdc -k | key: 秘钥key | 打开stdin后输入内容回车使用 KEY 进行解密 | xdc -e -k | key: 秘钥key | 打开stdin后输入内容回车使用 KEY 进行加密 | xdc -k -fc | key: 秘钥key,fc: 表明从剪贴板读取原始数据 | 根据传入的秘钥将剪贴板的数据解密,并将解密结果输出stdout | xdc -k -fc -oc | key: 秘钥key,fc: 表明从剪贴板读取原始数据,oc:表明解密结果输出到剪贴板 | 根据传入的秘钥将剪贴板的数据解密,并将解密结果输出到stdout,同时写入系统剪贴板 | xdc -k -p | key: 秘钥key,path:读取原始数据的绝对路径 | 根据传入的秘钥解密path指定路径的文本内容、输出到stdin | xdc -k -p -o <PATH_OUT> | key: 秘钥key,path:读取原始数据的绝对路径 o:保存解密结果文件的绝对路径 | 根据传入的秘钥解密path指定路径的文本内容、输出到out指定的文件中 |

功能特性

  • [x] 根据 .env 文件读项目配置的 key
  • [x] 读取的项目配置本地存储
  • [x] 当根据指定 key 解密失败自动遍历本地存储进行解密
  • [ ] 解密命令可以通过项目名称 name、环境 env 来选择对应存储的 key 进行解密