All Projects → sschiau → Particle

sschiau / Particle

Licence: mit
64 bit ID Generator

Labels

Projects that are alternatives of or similar to Particle

docker-suricata
A Suricata Docker image.
Stars: ✭ 120 (-4%)
Mutual labels:  ids
Suricata Rules
Suricata IDS rules 用来检测红队渗透/恶意行为等,支持检测CobaltStrike/MSF/Empire/DNS隧道/Weevely/菜刀/冰蝎/挖矿/反弹shell/ICMP隧道等
Stars: ✭ 397 (+217.6%)
Mutual labels:  ids
Wazuh Chef
Wazuh - Chef cookbooks
Stars: ✭ 9 (-92.8%)
Mutual labels:  ids
Security Onion
Security Onion 16.04 - Linux distro for threat hunting, enterprise security monitoring, and log management
Stars: ✭ 2,956 (+2264.8%)
Mutual labels:  ids
Sigma
Generic Signature Format for SIEM Systems
Stars: ✭ 4,418 (+3434.4%)
Mutual labels:  ids
Shortid
Super short, fully unique, non-sequential and URL friendly Ids
Stars: ✭ 657 (+425.6%)
Mutual labels:  ids
Remote-Integrity-Tool
The DearBytes remote integrity tool is an IDS (Intrusion Detection System) that keeps track of files on a remote server and logs an event if a file gets added, removed or modified.
Stars: ✭ 12 (-90.4%)
Mutual labels:  ids
Teler
Real-time HTTP Intrusion Detection
Stars: ✭ 1,248 (+898.4%)
Mutual labels:  ids
Awesome Cybersecurity Datasets
A curated list of amazingly awesome Cybersecurity datasets
Stars: ✭ 380 (+204%)
Mutual labels:  ids
Ossa
Open-Source Security Architecture | 开源安全架构
Stars: ✭ 796 (+536.8%)
Mutual labels:  ids
Evebox
Web Based Event Viewer (GUI) for Suricata EVE Events in Elastic Search
Stars: ✭ 286 (+128.8%)
Mutual labels:  ids
Wazuh Ruleset
Wazuh - Ruleset
Stars: ✭ 305 (+144%)
Mutual labels:  ids
Selks
A Suricata based IDS/IPS distro
Stars: ✭ 707 (+465.6%)
Mutual labels:  ids
bsmtrace
BSM based intrusion detection system
Stars: ✭ 31 (-75.2%)
Mutual labels:  ids
Optimus
🤖 Id obfuscation based on Knuth's multiplicative hashing method for PHP.
Stars: ✭ 1,084 (+767.2%)
Mutual labels:  ids
gonids
gonids is a library to parse IDS rules, with a focus primarily on Suricata rule compatibility. There is a discussion forum available that you can join on Google Groups: https://groups.google.com/forum/#!topic/gonids/
Stars: ✭ 140 (+12%)
Mutual labels:  ids
Hashids
A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.
Stars: ✭ 4,596 (+3576.8%)
Mutual labels:  ids
Uuid Random
Fastest UUID with cryptographic PRNG for JS
Stars: ✭ 87 (-30.4%)
Mutual labels:  ids
Adjective Adjective Animal
Suitably random and reasonably unique human readable (and fairly adorable) ids
Stars: ✭ 69 (-44.8%)
Mutual labels:  ids
Fail2ban
Daemon to ban hosts that cause multiple authentication errors
Stars: ✭ 6,677 (+5241.6%)
Mutual labels:  ids

Build Status Latest Stable Version License

Particle

Language: PHP

64bits int Time Based ID Generator

Uncoordinated

For high availability within and across data centers, machines generating ids should not have to coordinate with each other.

Solution

  • PHP (tested on v7.1.8)
  • Particle Id (64 bits) is composed of:
    • time - 42 bits (millisecond precision w/ a custom epoch)
    • configured machine id - 10 bits - up to 1024 machines
    • sequence number - 12 bits - up to 4096 random numbers

System Clock Dependency

You should use NTP to keep your system clock accurate.

How to use it

Generate Particle ID

Change const EPOCH in particle class to today epoch time w/ miliseconds (13 digits)

	$machineID = 0; // Machine ID (aka Server ID no.)
	Particle::generateParticle($machineID);

Time from Particle ID (w/ milisecond precision)

	$particleID = '4611692470816737853';
	Particle::timeFromParticle($particleID);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].