npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sefin-cipher

v0.1.0

Published

sefin-cipher is a JavaScript module that offers text encoding and decoding capabilities through a customized character mapping.

Downloads

18

Readme

📜 SefinCipher Module Documentation

SefinCipher is a JavaScript module that offers text encoding and decoding capabilities through a customized character mapping. It enables you to encode and decode text by substituting characters with their respective values from the mapping. Below, you will find instructions on how to utilize this module.

📦 Installation

You can install the SefinCipher module using npm:

npm install sefin-cipher

🧑‍💻 Usage

Once you've installed the module, you can use it in your JavaScript project as follows:

const sefinCipher = require('sefin-cipher');

✨ Available Ciphers

The SefinCipher module currently supports the following ciphers:

| # | Name | Usage | Functions | Recommended? | |---|--------------------------|------------|:------------------|:-------------| | 1 | SEF3 | <>.sef3.<> | encode() decode() | ✅ |

📑 SEF3 Cipher

🔑 Map

CipherMap is a predefined character mapping employed for encoding and decoding in the SEF3 cipher. It establishes relationships between characters and their corresponding replacements. For instance:

const cipherMap = new Map([
  ['a', 'dsa'],
  ['b', 'nbv'],
  ['c', 'zcx'],
  // ... (other character mappings)
  ['Z', 'ZXC'],
  ['?', '<?>'],
  ['!', '[!]']
]);

🔡 Example

#### Text
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

#### Encoded
LKL.s3,pio.s3,tre.s3,ter.s3,bnm.s3,ssj.s3,uio.s3,iop.s3,das.s3,yiu.s3,bnm.s3,ssj.s3,sdf.s3,pio.s3,lkl.s3,pio.s3,tre.s3,ssj.s3,das.s3,uio.s3,yrt.s3,ssj.s3,dsa.s3,bnm.s3,ter.s3,yrt.s3,,.s3,ssj.s3,zcx.s3
,pio.s3,nmb.s3,das.s3,ter.s3,zcx.s3,yrt.s3,ter.s3,yrt.s3,yiu.s3,tre.s3,ssj.s3,dsa.s3,sdf.s3,uio.s3,iop.s3,uio.s3,das.s3,zcx.s3,uio.s3,nmb.s3,fgh.s3,ssj.s3,ter.s3,lkl.s3,uio.s3,yrt.s3,,.s3,ssj.s3,das.s3,ter.s3,sdf.s
3,ssj.s3,sdf.s3,pio.s3,ssj.s3,ter.s3,uio.s3,yiu.s3,das.s3,bnm.s3,pio.s3,sdf.s3,ssj.s3,yrt.s3,ter.s3,bnm.s3,iop.s3,pio.s3,tre.s3,ssj.s3,uio.s3,nmb.s3,zcx.s3,uio.s3,sdf.s3,uio.s3,sdf.s3,yiu.s3,nmb.s3,yrt.s3,ssj.s3,yi
u.s3,yrt.s3,ssj.s3,lkl.s3,dsa.s3,nbv.s3,pio.s3,tre.s3,ter.s3,ssj.s3,ter.s3,yrt.s3,ssj.s3,sdf.s3,pio.s3,lkl.s3,pio.s3,tre.s3,ter.s3,ssj.s3,bnm.s3,dsa.s3,fgh.s3,nmb.s3,dsa.s3,ssj.s3,dsa.s3,lkl.s3,uio.s3,qew.s3,yiu.s3,dsa.s3,.

📝 Encoding Text

To encode text using the SefinCipher module, you can use the encode function:

const encodedText = sefinCipher.sef3.encode("Do you like cats?");
console.log(encodedText); // Output: "SDF.s3,pio.s3,ssj.s3,tuy.s3,pio.s3,yiu.s3,ssj.s3,lkl.s3,uio.s3,lkj.s3,ter.s3,ssj.s3,zcx.s3,dsa.s3,yrt.s3,das.s3,<?>"

📤 Decoding Text

To decode a previously encoded text, use the decode function:

const decodedText = sefinCipher.sef3.decode("SDF.s3,pio.s3,ssj.s3,tuy.s3,pio.s3,yiu.s3,ssj.s3,lkl.s3,uio.s3,lkj.s3,ter.s3,ssj.s3,bnm.s3,dsa.s3,tuy.s3,nbv.s3,ter.s3,ssj.s3,zcx.s3,dsa.s3,yrt.s3,das.s3,<?>");
console.log(decodedText); // Output: "Do you like cats?"

🌟 Full Example

Here's a complete example of encoding and then decoding text using the SefinCipher module:

const sefinCipher = require('sefin-cipher');
const textToEncode = "Computer cat";

const encodedText = sefinCipher.sef3.encode(textToEncode);
console.log("Encoded:", encodedText);

const decodedText = sefinCipher.sef3.decode(encodedText);
console.log("Decoded:", decodedText);

📜 License

This module is provided under the MIT License. Feel free to use and modify it according to your needs.

For more information or to report issues, please visit the GitHub repository.