A powerful, developer-focused text encoding and security utility library and web application. Zero-dependency core library (suitable for Node.js/Browser) + Premium modern Web Interface.
- Encoders: Base64, URL, HTML Entities, Hex, Binary, Base32, Base58.
- Security:
- Hashing: MD5, SHA1, SHA256, SHA512.
- Ciphers: ROT13, Caesar Cipher.
- Defanging: Defang/Refang IOCs (URLs, IPs) for safe sharing.
- JWT Debug: Decode JWT headers and payloads (without verification).
- Intelligence:
- Heuristics: Auto-detect input formats (Base64, Hex, JWT, etc.).
- Secret Detector: Flags sensitive strings like AWS keys and high-entropy secrets.
- Analysis: Entropy calculation and character distribution.
- Platforms:
- NPM Package: TypeScript-ready, tree-shakable.
- CLI: Feature-rich command line interface with auto-detection.
- Web App: Dark mode, responsive, auto-detect button, and secret alerts.
npm install text-encoderimport { toBase64, md5, defang } from 'text-encoder';
console.log(toBase64('Hello World')); // SGVsbG8gV29ybGQ=
console.log(md5('hello')); // 5d4140...
console.log(defang('http://google.com')); // hXXp://google[.]com# Run directly
npx tsx src/cli.ts base64 "Hello"
npx tsx src/cli.ts hash md5 "secret"
npx tsx src/cli.ts defang "1.1.1.1"
# Or after building
dist/cli.js --helpThe project includes a modern React web application in web/.
cd web
npm install
npm run devBuilt with Vite, React, Tailwind CSS.
ISC