Socket
Socket
Sign inDemoInstall

csrf-tokens

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csrf-tokens - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

index.js

@@ -11,3 +11,3 @@

// adjustable lengths
var secretLength = options.secretLength || 12 // the longer the better
var secretLength = options.secretLength || 24 // the longer the better
var saltLength = options.saltLength || 8 // doesn't need to be long

@@ -14,0 +14,0 @@

{
"name": "csrf-tokens",
"description": "primary logic behind csrf tokens",
"version": "1.0.2",
"version": "1.0.3",
"author": {

@@ -6,0 +6,0 @@ "name": "Jonathan Ong",

@@ -20,3 +20,3 @@

- `secretLength: 12` - the byte length of the secret key
- `secretLength: 24` - the byte length of the secret key
- `saltLength: 8` - the string length of the salt

@@ -23,0 +23,0 @@ - `tokensize: (secret, salt) => token` - a custom token creation function

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc