[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

La fonction crypt de Postgresql



Salut à tous,

J'ai un probleme avec la fonction crypt de postgresql.

je doit inserer une donnée dans un champ de ma base, et je veux la chiffrer avec MD5 il y a une foonction postgresql pour ca, elle depend du paquet postgresql-contrib

je l'utilise donc avec un
update utilsateurs set crypt=crypt('inode',gen_salt('md5')) where id='lambda';

voici l'erreur:
ERROR:  Function gen_salt("unknown") does not exist
Unable to identify a function that satisfies the given argument types
       You may need to add explicit typecasts

pourtant la doc fournie avec postgresql-contrib decrit bien la fonction qui devrait être reconnue.
/usr/share/doc/postgresql-contrib/README.pgcrypto.gz

Quelqu'un a t'il deja eu le probleme, y a t'il une astuce au niveau de la configuration pour activer l'usage de la fonction crypt?

J'utilise la version  7.3.2r1-5 de postgresql sous Sarge.

Georges Roux




Reply to: