Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@1auth/crypto

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1auth/crypto - npm Package Compare versions

Comparing version 0.0.0-alpha.17 to 0.0.0-alpha.18

12

./index.js

@@ -49,3 +49,3 @@ import { promisify } from 'node:util'

alphaNumeric: 62, // (26 + 10) * 2
base64: 64, // (26 + 10) * 2 + 2
base64: 64, // (26 * 2 + 10 + 2
hex: 16,

@@ -100,3 +100,5 @@ numeric: 10

charPool: characterPoolSize.alphaNumeric,
create: async () => randomAlphaNumeric(randomId.entropy)
// TODO update to use https://github.com/jetpack-io/typeid
create: async (prefix) =>
(prefix ? prefix + '_' : '') + randomAlphaNumeric(randomId.entropy)
}

@@ -108,3 +110,4 @@

charPool: characterPoolSize.alphaNumeric,
create: async () => randomAlphaNumeric(subject.entropy)
create: async (prefix) =>
(prefix ? prefix + '_' : '') + randomAlphaNumeric(subject.entropy)
}

@@ -117,3 +120,4 @@

expire: 15 * 60,
create: async () => randomAlphaNumeric(session.entropy)
create: async (prefix) =>
(prefix ? prefix + '_' : '') + randomAlphaNumeric(session.entropy)
}

@@ -120,0 +124,0 @@

@@ -49,3 +49,3 @@ import { promisify } from 'node:util'

alphaNumeric: 62, // (26 + 10) * 2
base64: 64, // (26 + 10) * 2 + 2
base64: 64, // (26 * 2 + 10 + 2
hex: 16,

@@ -100,3 +100,5 @@ numeric: 10

charPool: characterPoolSize.alphaNumeric,
create: async () => randomAlphaNumeric(randomId.entropy)
// TODO update to use https://github.com/jetpack-io/typeid
create: async (prefix) =>
(prefix ? prefix + '_' : '') + randomAlphaNumeric(randomId.entropy)
}

@@ -108,3 +110,4 @@

charPool: characterPoolSize.alphaNumeric,
create: async () => randomAlphaNumeric(subject.entropy)
create: async (prefix) =>
(prefix ? prefix + '_' : '') + randomAlphaNumeric(subject.entropy)
}

@@ -117,3 +120,4 @@

expire: 15 * 60,
create: async () => randomAlphaNumeric(session.entropy)
create: async (prefix) =>
(prefix ? prefix + '_' : '') + randomAlphaNumeric(session.entropy)
}

@@ -120,0 +124,0 @@

{
"name": "@1auth/crypto",
"version": "0.0.0-alpha.17",
"version": "0.0.0-alpha.18",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

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