Instalei via synaptic no ubuntu.
mas verifiquei os parametros

Att.

Junior

Em 21/12/07, Osvaldo Rosario Kussama <[EMAIL PROTECTED]>
escreveu:
>
> junior Prado escreveu:
> > Osvaldo,
> >
> > 1º - Instalei o módulo postgresql-contrib;
> > 2º - Configurei no postgresql.conf a opcao ssl=true;
> > 3º - coloquei um registro hostssl no arquivo pg_hba.conf;
> > 4º - Crie a tabela
> > CREATE TABLE crypto (
> > id SERIAL PRIMARY KEY,
> > title VARCHAR(50),
> > crypted_content BYTEA
> > );
> >
> > 5º Ao executar a query abaixo INSERT INTO crypto VALUES
> > (1,'test1',encrypt('daniel', 'fooz', 'aes')); deu o seguinte erro:
> >
> > ERRO:  função encrypt("unknown", "unknown", "unknown") não existe
> > LINE 1: INSERT INTO crypto VALUES (1,'test1',encrypt('daniel'...
> >                                                     ^
> > HINT:  Nenhuma função corresponde com o nome e os tipos de argumento
> > informados. Você precisa adicionar conversões de tipo explícitas.
> >
> > ********** Erro **********
> >
> > ERRO: função encrypt("unknown", "unknown", "unknown") não existe
> > SQL state: 42883
> > Dica: Nenhuma função corresponde com o nome e os tipos de argumento
> > informados. Você precisa adicionar conversões de tipo explícitas.
> > Caracter: 45
> >
> > Att.
> >
> > Junior
> >
> >
> > Em 20/12/07, *Osvaldo Rosario Kussama* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> escreveu:
> >
> >     junior Prado escreveu:
> >      >
> >      > Existem dois tipos de transformadores criptográficos:
> >      > Os simétricos utilizam a mesma chave para cifrar e decifrar, como
> por
> >      > exemplo no mysql AES_ENCRYPT() e AES_DECRYPT();
> >      > Os assimétricos são criptografia apenas de ida, não tendo como
> >      > descriptografar, exemplo de MD5 e SHA.
> >      > Pergunto a todos, O POSTGRES tem alguma função similar ao MYSQL
> >      > (AES_ENCRYPT() e AES_DECRYPT())? Pois gostaria de cifrar e
> >     decifrar...
> >      >
> >      >
> >
> >
> >     Não conheço as referências do MYSQL mas, creio que já foi
> >     sugerido, você já olhou o contrib/pgcrypto?
> >     Veja no README os itens 5 e 6, talvez atendam às suas necessidades.
> >
>
>
> Do README.pgcrypto em contrib/pgcrypto:
> "1.  Installation
> -----------------
>
> Run following commands:
>
>      make
>      make install
>      make installcheck
>
> The `make installcheck` command is important.  It runs regression
> tests for the module.  They make sure the functions here produce
> correct results.
>
> Next, to put the functions into a particular database, run the
> commands in file pgcrypto.sql, which has been installed into the
> shared files directory.
>
> Example using psql:
>
>      psql -d DBNAME -f pgcrypto.sql"
>
> Você seguiu estes passos?
>
> Osvaldo
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>



-- 
Valter Cezar Prado Junior
Analista TI

Sem saber como fazer ele fez!
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a