Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
django-shortuuidfield
Advanced tools
Short UUIDField for Django. Good for use in urls & file names. (Base 57, 22 characters)
Provides a ShortUUIDField for your Django models which uses the base-57 "Short UUID" package at https://github.com/stochastic-technologies/shortuuid/ .
Originally, a fork from David Cramer's excellent django-uuidfield, but not much is left of that besides a bit of structure.
Install it with pip (or easy_install)::
pip install django-shortuuidfield
First you'll need to attach a ShortUUIDField to your class. This acts as a char(22) to maintain compatibility with SQL versions::
from shortuuidfield import ShortUUIDField
class MyModel(models.Model):
uuid = ShortUUIDField()
Enjoy!
ShortUUIDField is a subclass of django.db.models.CharField
You can pass usual Django CharField parameters on init, although some of them are added/overwritten:
Uses shortuuid.uuid() that generates uuid4 random values
FAQs
Short UUIDField for Django. Good for use in urls & file names. (Base 57, 22 characters)
We found that django-shortuuidfield demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.