Skip to content

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.

Notifications You must be signed in to change notification settings

offsec-toolkit/text-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Encoder/Decoder & Security Tool

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.

Features

  • 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.

Installation

npm install text-encoder

Usage (Library)

import { 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

Usage (CLI)

# 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 --help

Web Application

The project includes a modern React web application in web/.

cd web
npm install
npm run dev

Built with Vite, React, Tailwind CSS.

License

ISC

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •