# How secure is this simple login?

**URL:** <https://forum.kirupa.com/t/how-secure-is-this-simple-login/219527>\
**Category:** programming\
**Created:** [March 17, 2007, 2:06pm UTC](https://forum.kirupa.com/t/how-secure-is-this-simple-login/219527 "2007-03-17T14:06:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rille31](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@rille31](https://forum.kirupa.com/u/rille31)\
**Post date:** [March 17, 2007, 2:06pm UTC](https://forum.kirupa.com/t/how-secure-is-this-simple-login/219527/1 "2007-03-17T14:06:07Z")

</div>

Im making a simple login for a small text cms that uses php file handling.

Currently Im storing the password and username dieectly in the php file, since Im only using xmlf files I dont see a need for a database.

```php
$correctUser = 'test';
$correctPass = md5('test');

```

Would it be much safer to store the passwod in a database?
