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.
Easily generate meaningful & consistent UUID's without the excessive boilerplate normally required.
CustomUUID is a versatile UUID generation library designed to create unique identifiers with optional embedded information such as dates or custom values. It's ideal for applications requiring unique IDs with additional embedded context.
CustomUUID provides a flexible way to generate UUIDs (Universally Unique Identifiers) with optional embedding of dates, application-specific IDs, or other relevant data. It supports various customization levels, from simple UUIDs to complex ones containing multiple data types.
To install CustomUUID, run the following command:
pip install custom_uuid
Generating a Standard UUID:
import custom_uuid
standard_uuid = custom_uuid.generate_custom_uuid()
print("Standard UUID:", standard_uuid)
Output:
Standard UUID: 123e4567-e89b-12d3-a456-426614174000
Generating a UUID with Current Date:
date_uuid = custom_uuid.uuid_with_date()
print("UUID with Date:", date_uuid)
Output:
UUID with Date: 20231109-123e4567-e89b-12d3-a456-426614174000
Generating a UUID for a Specific Application:
app_uuid = custom_uuid.uuid_for_app("MyApp123")
print("UUID for App:", app_uuid)
Output:
UUID for App: MyApp123-20231109-123e4567-e89b-12d3-a456-426614174000
Generating a Compact UUID Without Separators:
compact_uuid = custom_uuid.compact_uuid()
print("Compact UUID:", compact_uuid)
Output:
Compact UUID: 123e4567e89b12d3a456426614174000
Generating a UUID with Custom Elements:
custom_elements_uuid = custom_uuid.uuid_with_custom_elements("Element1", "Element2")
print("UUID with Custom Elements:", custom_elements_uuid)
Output:
UUID with Custom Elements: Element1-Element2-20231109-123e4567-e89b-12d3-a456-426614174000
Generating a Timestamped UUID:
timestamped_uuid = custom_uuid.timestamped_uuid()
print("Timestamped UUID:", timestamped_uuid)
Output:
Timestamped UUID: 20231109123000-123e4567-e89b-12d3-a456-426614174000
CustomUUID allows various configurations to tailor the UUID generation to your specific needs. Refer to the documentation for detailed configuration options.
CustomUUID is licensed under the MIT License.
FAQs
Easily generate meaningful & consistent UUID's without the excessive boilerplate normally required.
We found that custom_uuid 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.