finds.dev← search

// the find

ElsayedAner/Warehouse-Secure-System

★ 4 · C · updated Feb 2024

Warehouse secured items store system.

A C console application for managing a warehouse client list behind a username/password prompt. Single-user, single-machine, stores data in flat files. This is a student learning project, not a usable system.

- Demonstrates basic C file I/O and string handling in a self-contained project

- The command-dispatch loop using a switch on the first character is a reasonable pattern for a simple CLI

- At least attempts some form of access control rather than none at all

- Credentials are hardcoded in source ('Elsayed' / '1234') and published in the README — the 'security' in the name is entirely cosmetic

- The string comparison in check_user iterates character by character but never checks length, so a prefix match on the username passes; the password comparison has the same bug

- Uses goto for retry loops and manually unrolled string comparisons like `"exit\0"[i] != c[i]` instead of strcmp — the code is fragile and hard to follow without any real benefit

- 4 stars, 0 forks, last pushed February 2024 — no community, no tests, no build system, and the 'encryption' of files is not described or evidenced anywhere in the code shown

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →