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

github.com/wvh/uuid

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/wvh/uuid

  • v0.0.0-20200211162544-8a36d4031602
  • Source
  • Go
  • Socket score

Version published
Created
Source

GoDoc Build Status Test Go Report Card

uuid

This package generates a 128-bit UUID based on Unix time (similar to one of CouchDB's UUID options).

The first 7 bytes indicate the time since the unix epoch in hex microseconds; the last 9 bytes are cryptographically secure random bits.

The benefits of this form of UUID are chronological sortability, which is good for database key usage, and a measure of protection against predictability, since it carries at least 72 bits of entropy (9 x 8b). Note that this doesn't necessarily make it a good choice for cryptographic purposes.

This package defaults to the UUID form without dashes, as they're not particularly useful in this format.

Licensed under MIT/ISC license. Use freely. Fixes and improvements welcome.

FAQs

Package last updated on 11 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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