1.0.6 • Published 5 months ago

aakashchipher v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

AakashCipher

npm version Build Status Downloads

A simple module to encode and decode messages with a secret key.

Features

  • Simple to use: Encode and decode messages with ease.
  • Secure: Utilizes a secret key for encoding and decoding.
  • Flexible: Supports any length of input messages.

Table of Contents

Installation

Install the package using npm:

npm install aakashcipher

Usage Encoding a Message

const { encodeMessage } = require('aakashchipher');

const data = "hello aakash";
const secretKey = "Secret123";

try {
    const encodedData = encodeMessage(data, secretKey);
    console.log(encodedData); // Encoded message
} catch (error) {
    console.error(error.message);
}

Decoding a Message

const { decodeMessage } = require('aakashchipher');

const encodedData = "your_encoded_message_here";
const secretKey = "Secret123";

try {
    const decodedData = decodeMessage(encodedData, secretKey);
    console.log(decodedData); // Decoded message
} catch (error) {
    console.error(error.message);
}

API encodeMessage

encodeMessage(data, secretKey)

data: string - The message to encode. secretKey: string - The secret key used for encoding. Returns: string - The encoded message.

decodeMessage

decodeMessage(encodedData, secretKey)

encodedData: string - The message to decode. secretKey: string - The secret key used for decoding. Returns: string - The decoded message.

Contributing Contributions are welcome! Please open an issue or submit a pull request.

License This project is licensed under the ISC License.

Links

GitHub Repository
Issue Tracker
1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago