Identmoji is a tool that generates a unique identifier for your server using emojis and a code derived from system-specific data. It can output the identifier in text or JSON format and save it to a configuration file for future reference.
Note
This project was created as a learning tool to explore the architecture of command-line applications written in C and to deepen understanding of the language itself. It is not intended for serious or critical use. The generated identifiers, while fun and unique, should be considered as a playful addition to your workflow or an aesthetic enhancement rather than a reliable method for important identification purposes, especially in production environments.
We encourage you to enjoy using this project for entertainment, but it is not recommended for any serious or sensitive tasks.
- Generates a unique server identifier consisting of:
- A single emoji or a set of four emojis.
- A five-character uppercase code.
- Options to output in text or JSON format.
- Ability to save the identifier to a file.
- Checks for existing configuration files.
The following flags can be used to modify the behavior of the program:
Flag | Description |
---|---|
-4 |
Use 4 emojis instead of 1 in the output. |
--json |
Output in JSON format. |
--full |
Output full details: single emoji (emojis ), emoji set (emojis_set ), and code (code ). |
-o [file] |
Specify the output file to save the identifier. |
--check |
Check if the configuration file exists and display its content. |
--help |
Display help information about the available options. |
sudo apt-get update
sudo apt-get install build-essential libssl-dev
sudo yum groupinstall "Development Tools"
sudo yum install openssl-devel
sudo pacman -S base-devel openssl
To build the application, simply run:
gcc identmoji.c -o identmoji -lssl -lcrypto
This will compile the source code and generate the identmoji
executable.
Default Usage
By default, identmoji will generate an identifier with a single emoji and a five-character code.
./identmoji
Example Output:
Server Identifier: π»A1B2C
Using 4 Emojis
To generate an identifier with a set of four emojis, use the -4
flag:
./identmoji -4
Example Output:
Server Identifier: π»π§π‘πA1B2C
Full Output (Text)
The --full
flag provides a more detailed output with a single emoji, a set of four emojis, and the code:
./identmoji --full
Example Output:
Server Identifier: π»
Server Identifier Set: π»π§π‘π
Server Code: A1B2C
Full Output (JSON)
To get the full output in JSON format, use both the --json
and --full
flags:
./identmoji --json --full
Example Output:
{
"emojis": "π»",
"emojis_set": "π»π§π‘π",
"code": "A1B2C"
}
Saving the Identifier to a File
You can save the generated identifier to a file using the -o
or --output
flag:
./identmoji --json --full -o /path/to/identifier.json
This will save the JSON-formatted identifier to the specified file.
Example Output:
Configuration saved to /path/to/identifier.json
Checking Existing Configuration
You can check if a configuration file exists and display its contents using the --check
flag:
./identmoji --check
If the file exists, its contents will be displayed. If the file does not exist, you'll receive a message like:
No configuration found at /path/to/identifier.json
Also available with -o
flag (but as an input file)
./identmoji --check -o /path/to/identifier.json