Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Funktion PASSWORD() in MySQL 4

Empfohlene Antworten

Veröffentlicht

Hallo erstmal, wollte fragen, ob man bei MySQL 4 die Funktion PASSWORD() nicht mehr in der WHERE-Klausel verwenden kann? Da ich die User-Passwörter in der Datenbank verschlüsselt ablege. Allerdings scheint das ab V4 von MySQL nicht mehr zu gehen. Oder mache ich was falsch. Hier mal eine Beispielabfrage:

SELECT * FROM t_user WHERE Login="Name" AND Passwort=PASSWORD("Passwort");

Und, wenn das wirklich nicht geht, wie kann ich das besser machen?

Danke schonmal

The HotkeyM

Hm,

du nutzt die password Function in einer eigenen Applikation?

Das ist imho nicht so gut.

Für sowas ist MD5 angebrachter.

http://www.mysql.com/doc/en/Encryption_functions.html

Note: The PASSWORD() function is used by the authentication system in MySQL Server, you should NOT use it in your own applications. For that purpose, use MD5() or SHA1() instead. Also see RFC-2195 for more information about handling passwords and authentication securely in your application.

Gruß Jaraz

OK, das Thema hat sich erlegt... Man sollte doch die Spalten ausreichend breit festlegen, sonst kann das ja gar nicht gehen... :rolleyes:

Thx @ll

The HotkeyM

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.