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

noa-sign

v1.0.3

Published

noa系列 获取认证token的签名算法

Downloads

3

Readme

Noa sign

公司的签名算法 这个实际上不应该发送到公共包来 但是防君子不防小人 前端哪有什么真正的安全可言😭 (ps: 暂时没有功夫搞私有npm 有时间弄一个)

机制

前端后后台约定一个算法算法。通过配置的appidappkey + 时间戳 + 前面三者算法生成的sign。 共计4个参数,最后md5加密出去。发起请求,我们就能过获取到accessToken

实现

不过多赘述。(ps: 😠没几行代码 自己翻源码看) 是ts写的 转成的js。

希冀

  1. 希望都去实现 getAccessTokenrashAccessToken 方法。
  2. accessToken带在请求头当中 让后台配合
  3. 如果说getAccessParams方法 还需要带别的字段进行算法 希望你在继承的Class里面去 从写该方法

Tip

其中new 出来的对象有 _md5BeforeStr属性 里面放的是算法 算完过后 md5前的值 如果后台一直报accessToken非法的化.我们可以去和后台比对一下这个值 看问题是不是出现在我们这。