Skip to content

Commit 18bb89a

Browse files
Added the SQL query / SQL File
Added some info in the README.md file Stated the standard content of the configuration file Stated some info regarding the sql database The sql database tables can be found in the root of the project and is named auth_server.sql
1 parent 38a8d4e commit 18bb89a

File tree

2 files changed

+75
-2
lines changed

2 files changed

+75
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
PAaGDM
2-
32
Player Authentication and Game Data Management
43

5-
Argon2 encryption is being used in password authentication
4+
5+
Argon2 encryption is being used in password authentication
6+
7+
8+
Default config file:
9+
10+
./filestore/config.gdb
11+
12+
Host: localhost
13+
User: root
14+
Password:
15+
Database: auth_server
16+
Authentication data table: user_auth
17+
Gamedata table: user_gamedata
18+
19+
The auth_server SQL file is present in the root of the project.
20+
Filename is auth_server.sql - There is a test user in the user_auth table. The password for the test user is encrypted using Argon2.
21+
The decrypted clear text password for the user is test. This can be used for testing purposes only.

auth_server.sql

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
-- phpMyAdmin SQL Dump
2+
-- version 5.2.1
3+
-- https://www.phpmyadmin.net/
4+
--
5+
-- Host: localhost
6+
-- Erstellungszeit: 25. Jan 2025 um 23:32
7+
-- Server-Version: 10.4.28-MariaDB
8+
-- PHP-Version: 8.2.4
9+
10+
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11+
START TRANSACTION;
12+
SET time_zone = "+00:00";
13+
14+
15+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
16+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
17+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
18+
/*!40101 SET NAMES utf8mb4 */;
19+
20+
--
21+
-- Datenbank: `auth_server`
22+
--
23+
24+
-- --------------------------------------------------------
25+
26+
--
27+
-- Tabellenstruktur für Tabelle `user_auth`
28+
--
29+
30+
CREATE TABLE `user_auth` (
31+
`uid` int(11) NOT NULL,
32+
`username` varchar(25) NOT NULL,
33+
`password` varchar(100) NOT NULL,
34+
`creation_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
35+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
36+
37+
--
38+
-- Daten für Tabelle `user_auth`
39+
--
40+
41+
INSERT INTO `user_auth` (`uid`, `username`, `password`, `creation_date`) VALUES
42+
(0, 'test', '$argon2i$v=19$m=65536,t=2,p=1$6o9CiQ1IfeZLHDMP5MUwYA$V0tfy5/cWn39XjpLiivFqntALnbODlQyU2hQ/gpYw0w', '2025-01-25 22:31:35');
43+
44+
--
45+
-- Indizes der exportierten Tabellen
46+
--
47+
48+
--
49+
-- Indizes für die Tabelle `user_auth`
50+
--
51+
ALTER TABLE `user_auth`
52+
ADD UNIQUE KEY `uid` (`uid`);
53+
COMMIT;
54+
55+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
56+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
57+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 commit comments

Comments
 (0)