Re: Problem with encode () and hmac() in pgcrypto

Поиск
Список
Период
Сортировка
Искать
От
Marko Kreen
Тема
Re: Problem with encode () and hmac() in pgcrypto
Дата
Msg-id
AANLkTikSA3fx3mostRrYwFo6ehfs_B6ApT_JHi4QQLpv@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Problem with encode () and hmac() in pgcrypto hlcborg <h.luis.cardoso@gmail.com>
Re: Problem with encode () and hmac() in pgcrypto Marko Kreen <markokr@gmail.com>
Re: Problem with encode () and hmac() in pgcrypto hlcborg <h.luis.cardoso@gmail.com>
Re: Problem with encode () and hmac() in pgcrypto Marko Kreen <markokr@gmail.com>
Re: Problem with encode () and hmac() in pgcrypto hlcborg <h.luis.cardoso@gmail.com>
Re: Problem with encode () and hmac() in pgcrypto Marko Kreen <markokr@gmail.com>
On Wed, Feb 2, 2011 at 1:19 AM, hlcborg  wrote:
>> These two operations are not equivalent.
>
> But...
> Can I have this operation done in the Stored Procedure inside the Database?
> Plain SHA1, which is signed with RSA signature. and in the end encoded to
> base64?
>
> I was looking in the pgcrypto functions, and I haven´t found any that I
> could use.... I think... Maybe I am not looking for the rigth one.
> I need to use Plain SHA1 signed with a RSA signature and encoded into base64
> due to a new law related to digital signature in invoices in my country.

pgcrypto does not do signing, sorry.

But you can do it with PL/Python or PL/Perl and their wrapper libraries
around OpenSSL (or any other crypto library).

-- 
marko
В списке pgsql-general по дате отправления
От: Adarsh Sharma
Дата:
От: Adarsh Sharma
Дата:
FAQ