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

wechat-enterprise-cypher

v0.0.1

Published

tool to encrypt/decrypt the communicating message for wechat enterprise account

Downloads

4

Readme

A super simple cypher that is used to help connect to a weixin/wechat enterprise social account

==>>To install:

var cypher = require('wechat-enterprise-cypher');

==>>To initializing

var davonki = cypher.davonki("your Token","your Corp Id","your encoding AES Key");

==>>To decypher an enterprised wechat message:

davonki.decrypt(encrypted_message);

==>>To cypher a common message

davonki.encrypt(message);

For exmaple, please run test.js in the ./test foler, you will get:

qMo/O8Pco4U3rxUyVF56bXuIqMByU5Q3tIUGJHSfdCJrQBJZd8mEuEuwQP6koREy3NlRrO88+lhkAqKeYCzdUGe68VdHa7QW+LW1k8PYj2Dg0Og3E2eoFvRBXh3NsiWWj4+4msyTRZiv53EOJaoYw2 2ksgkZtsl39akyhplhME8FyeQWOjDsHrmS+PHXF8TfQaUY1ISTwXDp+vNweiaOLF8Davlx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enZ5ZhnCWI6g7csysZASsIT2mjMx4NwpC+UxiXFtRR3PtZoZZLN 9Z7Re7hhjORrBqa8GH9gvGGaY2jKqdC37nSK2Otmfvi9ROaIu79MRAZWabX9uGQUeTlUmTgpz41CSmUKkdHKx9NcjoFwrLkFIXZI5pPdm/JysikYI9xeMWDe3Mimcg6w9oVmx6F+oXL90W00Hs3LWH WaX8hRbv3NjEw9Orm9631j/JlJqYO7J18+yym64f0+TZ2IyYbqk+EQRiV1qeRuB/W4UMX8XV4cPAU7+bWBnlI++LrPkYEp7J4WdBpq98Q4nIluYBP1JWJvn9dw==

14143791963853

There's some chinese words so you see some unmotivativated words

==>>To get the signature of a message

davonki.getSignature(timestamp, nonce, message);

==>>To verify the host, useful for connecting, function strictly follow the instruction from wechat encrypt/decrypt guide, please check that for param information

davonki.verifyURL(msg_signature, timestamp, nonce, echostr);

==>>To decrypt the message from the xml.Encrypt field, function strictly follow the instruction from wechat encrypt/decrypt guide, please check that for param information param 'jsonFromXML' is the json object that converted from the posted xml body, use some xml parser here before using this function param 'next' here stand for a call back function

davonki.decryptMsg(msg_signature, timestamp, nonce, jsonFromXML, next);

==>>To encrypt the unencrypted reply into the encrypted message, building the xml.Encrypt field, xml.timestampe, xml.nonce, xml.signature and xml itself, function strictly follow the instruction from wechat encrypt/decrypt guide, please check that for param information param 'replyMsg' is the xml formatted message that is common used amount other types of wechat social account

davonki.encryptMsg(replyMsg);