@bitstack/cryptopipe
v1.0.6
Published
AES256 decryption tools for encrypted data in JWT-style format
Readme
CryptoPipe
A TypeScript library for decrypting AES256 encrypted data in JWT-style format.
Package Structure
This is a monorepo containing:
- Main Package (
/src): Core decryption functionality as an npm package - Examples:
- Server encrypted - Node.js encryption example
- Client decryption - Angular decryption example
- Tools: https://aes256-decryption-tools.pages.dev/
- Apifox post-handle
Installation
npm install @bitstack/cryptopipe
# or
yarn add @bitstack/cryptopipeUsage
Basic Usage
import {AES256Decryption} from '@bitstack/cryptopipe';
const decryptor = new AES256Decryption();
// Decrypt token
const result = decryptor.decrypt(encryptedToken, secretKey);
if (result.success) {
console.log('Decrypted data:', result.data);
} else {
console.error('Decryption failed:', result.error);
}Building the Package
npm run build
npm publish --access publicLicense
MIT
