# guedes-crypt

> Library for data encryption using Guedes Cypher

Latest version **2.1.0** (published 2025-06-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install guedes-crypt
pnpm add guedes-crypt
yarn add guedes-crypt
bun add guedes-crypt
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2025-06-10 |
| First published | 2021-12-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joao Guedes |
| Maintainers | conaboi |
| Keywords | encryption, guedes, nodejs, crypto |

## Links

- npm: https://www.npmjs.com/package/guedes-crypt
- Repository: https://github.com/JoaoGuedes01/guedesCrypt
- Homepage: https://github.com/JoaoGuedes01/guedesCrypt#readme
- Issues: https://github.com/JoaoGuedes01/guedesCrypt/issues
- npm.io page: https://npm.io/package/guedes-crypt

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2025-06-10
- 2.0.3 — 2025-06-10
- 2.0.2 — 2025-06-09
- 2.0.1 — 2025-06-09
- 2.0.0 — 2025-06-09
- 1.0.2 — 2021-12-11
- 1.0.1 — 2021-12-11
- 1.0.0 — 2021-12-11

## README

<p align="center">
  <img src="logo.svg" alt="Guedes Crypto Logo" />
</p>

# 🛡️ guedes-crypto

> 🔐 AES-256 encryption based on Guedes Cypher

**guedes-crypto** is a Node.js library that encrypts and decrypts data using AES-256-CBC, encoding the result using a fixed vocabulary of "Guedes" words instead of typical base64 or hex.

Ideal for obfultscation, novey, or just showing off your love for all things Guedes.

---

## ✨ Features

- 🔐 AES-256-CBC encryption
- 🎭 Custom “Guedes vocabulary” ciphertext encoding
- 🔁 Functional API with customizable configuration
- ⚙️ Customizable encryption parameters
- 📦 Lightweight and dependency-free

---

## 📦 Installation

```bash
npm install guedes-crypto
```
## 🧪 Usage
```js
import { encrypt, decrypt, generatePassword} from 'guedes-crypt';

// Basic usage
const password = generatePassword();
const secret = 'Top secret message';

const encrypted = encrypt(secret, password);
console.log(encrypted); // guedes words...

const decrypted = decrypt(encrypted, password);
console.log(decrypted); // "Top secret message"

```
## 🧠 Advanced Configuration
```js
import { encrypt, decrypt, createCrypto} from 'guedes-crypt';
const customCrypto = createCrypto({
  algorithm: 'aes-256-cbc',
  saltLength: 16,
  ivLength: 16,
  iterations: 100000,
  keyLength: 32,
  guedesWords: [
    "guedes", "Guedes", "GUEDES", "gUeDeS",
    "guedes!", "guedes?", "guedes.", "guedes!!",
    "guedes_is_the_best", "guedes_great_guy", "guedes_ganda_gajo", "guedes_best_man",
    "guedes_very_good", "very_nice_guedes", "guedes_tuga_molly", "guedes_molly_tuga"
  ]
});

const encrypted = customCrypto.encrypt('Hello world', 'custom_password');
const decrypted = customCrypto.decrypt(encrypted, 'custom_password');
```
## 🧪 Testing
```bash
npm run test
```
## 🧰 API Reference
**encrypt(plaintext, password)**
Encrypts the string using the default configuration and returns Guedes-encoded ciphertext.

**decrypt(ciphertext, password)**
Decrypts Guedes-encoded ciphertext using the same password.

**generatePassword()**
Generates a random, strong password prefixed with guedes_.

**createCrypto(config)**
Returns a new encrypt, decrypt, and generatePassword function with custom configuration.

## 📜 License
MIT © You can do whatever the fuck xD
## 💡 Why?
Why not?

---
_Source: https://npm.io/package/guedes-crypt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
