[gentoo] mysql encrypt voor > 8 characters

Pagina: 1
Acties:

  • Boudewijn
  • Registratie: Februari 2004
  • Niet online

Boudewijn

omdat het kan

Topicstarter
Hoi


Ik ben wat aan het hacken met mysql en php, en ik lees in de manual:
ENCRYPT(str[,salt])

Encrypts str using the Unix crypt() system call and returns a binary string. The salt argument should be a string with at least two characters. If no salt argument is given, a random value is used.

mysql> SELECT ENCRYPT('hello');
-> 'VxuFAJXVARROc'

ENCRYPT() ignores all but the first eight characters of str, at least on some systems. This behavior is determined by the implementation of the underlying crypt() system call.

If crypt() is not available on your system (as is the case with Windows), ENCRYPT() always returns NULL.
Bron : http://dev.mysql.com/doc/...encryption-functions.html


Het is dus zo dat Gentoo Linux op amd64 dit ook doet.
Ik vind dit niet echt fijn; aangenomen dat je een alfabet hebt van 75 karakters (2x 26 + 10 cijfers + andere tekens) zit je toch maar aan 75^8 mogelijkheden.

Is er een manier om dit behaviour op te lossen, want echt handig is het niet :(


Mja een ander encrpytie algoritme gebruiken kan ja.... maar niet voor mij (afaik).
Ik gebruik nml courier-authlib die een MYSQL encrypted (als in : Met de mysql functie) versleuteld password verwacht.

Iemand ideeen?


Google+dev.mysql.com+GoT-search leverde veel irrelevante meuk op :(

Zaram module kopen voor je glasvezelaansluiting?