arlecchino-key-generator

1.0.5 • Public • Published

arlecchino-key-generator

npm version GitHub license

A Node.js module for generating unique keys with the Arlecchino touch.

RlhvODN0R1VjQUloMENDLXJlbW92ZWJnLXByZXZpZXc=

Installation

npm install arlecchino-key-generator

Usage

JavaScript

const arle = require('arlecchino-key-generator');

// Generate a single key
arle.createHash();

// Generate multiple keys
arle.createManyHashes(100);

// Generate a custom key
arle.createCustomHash('Clorinde');

Description

Arlecchino Key Generator is a Node.js module designed to produce unique keys with a touch of Arlecchino's charm. It utilizes cryptographic functions to generate a random UUID, shuffles its characters, inserts the phrase "Arlecchino" in the middle, and then encodes a random 7-character substring of the resulting key using Base64 encoding.

New Features

  • createHash(): Generates a unique key with "Arlecchino" characters.
  • createManyHashes(count): Generates the specified number of unique keys.
  • createCustomHash(customString): Generates a custom key with the specified string.
  • parse(hashString): Converts a createHash string to an array of bytes.
  • stringify(byteArray): Converts an array of bytes to a createHash string.
  • validate(hashString): Validates a createHash string.

Why Use This Module?

Idk, I created this module in my free time from work, use it if you're a Genshin player and a simp of Arlecchino like me lmao.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your improvements.

License

This project is licensed under the ISC License - see the LICENSE file for details.

Package Sidebar

Install

npm i arlecchino-key-generator

Weekly Downloads

13

Version

1.0.5

License

ISC

Unpacked Size

12.4 kB

Total Files

10

Last publish

Collaborators

  • 71kevin