Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Next generation GUIDs. Collision-resistant ids optimized for horizontal scaling and performance.
CUID2 for Python 3. Next generation GUIDs. Collision-resistant ids optimized for horizontal scaling and performance.
A port of the CUID2 reference implementation by Parallel Drive to Python 3.
:memo: Note: Originally taken from https://github.com/overflowdigital before it was unpublished. Thank you to @joshuathompsonlindley for your original contribution!
For more information on the theory and usage of CUID2, see the following.
For more information on the improvements of CUID2 over CUID, see the following.
pip install cuid2
You can generate CUIDs directly in the terminal with the following:
$ cuid2
Or you can rely on a CUID wrapper if you don't need any customizations:
from typing import Callable
from cuid2 import cuid_wrapper
cuid_generator: Callable[[], str] = cuid_wrapper()
def main():
my_cuid: str = cuid_generator()
next_cuid: str = cuid_generator()
Finally, for more explicit control of the CUID generator, you can instantiate the class directly:
from cuid2 import Cuid
CUID_GENERATOR: Cuid = Cuid(length=10)
def main():
my_cuid: str = CUID_GENERATOR.generate()
next_cuid: str = CUID_GENERATOR.generate()
FAQs
Next generation GUIDs. Collision-resistant ids optimized for horizontal scaling and performance.
We found that cuid2 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.