Gathering detailed insights and metrics for wsse
Gathering detailed insights and metrics for wsse
Gathering detailed insights and metrics for wsse
Gathering detailed insights and metrics for wsse
npm install wsse
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
16 Stars
185 Commits
2 Forks
3 Watching
1 Branches
4 Contributors
Updated on 10 Feb 2024
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
9.8%
1,017
Compared to previous day
Last week
23.9%
4,536
Compared to previous week
Last month
-15.3%
14,677
Compared to previous month
Last year
-15.6%
183,521
Compared to previous year
WSSE Username Token generator for Node.js
See: http://www.xml.com/pub/a/2003/12/17/dive.html
1npm install wsse
1import wsse, { UsernameToken } from 'wsse'; 2 3const token = wsse({ username: 'bob', password: 'taadtaadpstcsm' }); 4 5// 'bob' 6console.log(token.getUsername()); 7 8// 'taadtaadpstcsm' 9console.log(token.getPassword()); 10 11// e.g. '2003-12-15T14:43:07Z' 12console.log(token.getCreated()); 13 14// e.g. 'd36e316282959a9ed4c89851497a717f' 15console.log(token.getNonce()); 16 17// e.g. 'quR/EWLAV4xLf9Zqyw4pDmfV9OY=' 18console.log(token.getPasswordDigest()); 19 20// e.g. 'UsernameToken Username="bob", PasswordDigest="quR/EWLAV4xLf9Zqyw4pDmfV9OY=", Nonce="d36e316282959a9ed4c89851497a717f", Created="2003-12-15T14:43:07Z"' 21console.log(token.getWSSEHeader()); 22console.log(token.toString()); 23console.log(token + ''); 24 25// ----- advanced ----- 26 27// you can use `UsernameToken` class. 28const token2 = new UsernameToken({ 29 username: 'bob', // (required) 30 password: 'taadtaadpstcsm', // (required) 31 created: '2003-12-15T14:43:07Z', // (optional) you can specify `craeted`. 32 nonce: 'd36e316282959a9ed4c89851497a717f', // (optional) you can specify `nonce`. 33 sha1encoding: 'hex' // (optional) you can specify `sha1encoding` for wrong WSSE Username Token implementation. 34}); 35 36// you can use `nonceBase64` option. it encodes the nonce to base64 in header. 37// 'UsernameToken Username="bob", PasswordDigest="quR/EWLAV4xLf9Zqyw4pDmfV9OY=", Nonce="ZDM2ZTMxNjI4Mjk1OWE5ZWQ0Yzg5ODUxNDk3YTcxN2Y=", Created="2003-12-15T14:43:07Z"' 38// e.g. Hatena API http://developer.hatena.ne.jp/ja/documents/auth/apis/wsse 39console.log(token2.getWSSEHeader({ nonceBase64: true })); 40console.log(token2.toString({ nonceBase64: true }));
ISC
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
8 existing vulnerabilities detected
Details
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn Morewsse-token
Web Services Security Extension (WSSE) Username Authentication Token
wsse-header
wsse is a simple and easy way to generate WSSE authentication header in JavaScript (e.g Symfony2 applications)
wsse-light
Web Services Security Extension (WSSE) Username Authentication Token
insomnia-plugin-emarsys-wsse
This plugin adds the WSSE headers with Emarsys format.