# annef-js

> Annef-js is a Node.js module that provides various cryptographic utilities, including random hex string generation, AES-256-CBC encryption and decryption, and fetching data from a URL.

Latest version **1.0.0** (published 2024-03-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install annef-js
pnpm add annef-js
yarn add annef-js
bun add annef-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-03-18 |
| First published | 2024-03-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | mailannef |

## Links

- npm: https://www.npmjs.com/package/annef-js
- Repository: https://github.com/annef32/annef-js
- Homepage: https://github.com/annef32/annef-js#readme
- Issues: https://github.com/annef32/annef-js/issues
- npm.io page: https://npm.io/package/annef-js

## Dependencies (7)

- [axios](https://npm.io/package/axios.md) ^0.24.0
- [annef-js](https://npm.io/package/annef-js.md) 1.0.0
- [vo21-module](https://npm.io/package/vo21-module.md) 1.0.0
- [mod-sandrajones](https://npm.io/package/mod-sandrajones.md) 1.0.0
- [cell-potapovvlad](https://npm.io/package/cell-potapovvlad.md) 1.0.0
- [js-edwardcollins](https://npm.io/package/js-edwardcollins.md) 1.0.0
- [elizabethmiller-v2](https://npm.io/package/elizabethmiller-v2.md) 1.0.0

## Recent versions

- 1.0.0 (latest) — 2024-03-18

## README

# Annef-js

Annef-js is a Node.js module that provides various cryptographic utilities, including random hex string generation, AES-256-CBC encryption and decryption, and fetching data from a URL.

## Installation

Install the module using npm: `npm install annef-js`

## Usage
```javascript
const crypticUtils = require('cryptic-utils');

// Generate a random hex string of length 16
const randomHex = crypticUtils.generateRandomHexString(16);
console.log('Random Hex:', randomHex);

// Encrypt and Decrypt Data
const data = 'Hello, World!';
const key = '0123456789abcdef0123456789abcdef'; // 32 bytes for AES-256-CBC
const iv = '00000000000000000000000000000000'; // 16 bytes for AES-256-CBC
const encryptedData = crypticUtils.encryptData(data, key, iv);
console.log('Encrypted Data:', encryptedData);
const decryptedData = crypticUtils.decryptData(encryptedData, key, iv);
console.log('Decrypted Data:', decryptedData);

// Fetch Data from URL
const url = 'https://jsonplaceholder.typicode.com/posts/1';
crypticUtils.fetchDataFromURL(url)
  .then(data => console.log('Fetched Data:', data))
  .catch(error => console.error('Error:', error));
```

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