
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@cttricks/pseudocrypt
Advanced tools
Generate short, reversible, pseudo-unique hashes for numeric values. Inspired by KevBurnsJr's original PHP implementation.
✨ A tiny utility to generate short, deterministic, pseudo-unique hashes — not for security, just for fun and function.
Years ago, while working on a PHP project, I stumbled upon a brilliant little gem called PseudoCrypt by KevBurnsJr. It gave me compact, reversible hashes for integer IDs — just what I needed for pretty URLs.
Fast-forward to today, while building a Node + Express app, I wanted that same functionality. Nostalgia kicked in — so I re-imagined the logic in JavaScript, packed it into a clean NPM module, and now, I'm sharing it with the world.
To install PseudoCrypt via npm and use it in your Node.js projects:
npm i @cttricks/pseudocrypt
If you're building a front-end application or prefer to load PseudoCrypt directly in the browser, you can include it from the jsdelivr cdn.
<script src="https://cdn.jsdelivr.net/gh/cttricks/pseudocrypt@v1.0.0/dist/pseudocrypt.min.js"></script>
const { encode, decode } = require('@cttricks/pseudocrypt');
const shortId = encode(1320588); // HdMxQ
const original = decode(shortId); // 1320588
[!TIP] You can also customize the hash length
const hash = encode(123456, 7);
[!WARNING]
This is not a cryptographic hash — it’s meant for short pseudo-unique strings, not for passwords or secure encoding.
This little library was built with a blend of nostalgia, practicality, and a sprinkle of fun. If it saved you a few lines of code or gave your project some cleaner URLs — I’m glad it helped ✨
Feel free to fork it, remix it, improve it, or just drop a ⭐ on GitHub if you found it useful. No formalities, no promises — just code made with good vibes.
—
Happy hashing! 🚀 — Tanish Raj / @cttricks
FAQs
Generate short, reversible, pseudo-unique hashes for numeric values. Inspired by KevBurnsJr's original PHP implementation.
The npm package @cttricks/pseudocrypt receives a total of 0 weekly downloads. As such, @cttricks/pseudocrypt popularity was classified as not popular.
We found that @cttricks/pseudocrypt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.