You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

yuid

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yuid

youtube-like UUIDs

0.1.1
pipPyPI
Maintainers
1

yuid

Introduction

This is a simple script that generates a 64bit UUID and encodes it in base62 thus generating a secure unique 11 char string that are similar to the beloved youtube video ids

Structure

Our 64 bit string is composed with the following method

10 bits are random 12 bits are a hash from machine id 42 bits are unixtime till milliseconds

they are all concatenated in the mentioned order

Install

pip install yuid

Usage

>>> from yuid import yuid
>>> yuid()
UAfxKExKjVQ

Keywords

uuid

FAQs

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