Re: php encryption -> encrypted-session-nginx decryption

127 views
Skip to first unread message

agentzh

unread,
Dec 3, 2012, 8:09:52 PM12/3/12
to Aleksandar Bilanovic, openresty-en
Hello!

On Mon, Dec 3, 2012 at 4:43 PM, Aleksandar Bilanovic wrote:
> Sorry for being direct as this, but i tried everything and I don't
> have more ideas.
> I'm trying to use php's mcrypt to encrypt string which latter will be
> decrypted by your encrypted-session-nginx module and I was unlucky so
> far. Do you maybe happen to know which mcrypt options should I use to
> do this ?
>

ngx_encrypted_session uses openssl to do the work, which may use a
different padding strategy with php's mcrypt library. You need to
ensure they use exactly the same padding method.

Best regards,
-agentzh

P.S. I'm cc'ing the openresty-en mailing list, maybe other people
there can help you more: https://groups.google.com/group/openresty-en

Stepan Legachev

unread,
Mar 20, 2015, 7:44:00 PM3/20/15
to openre...@googlegroups.com, whiskeyk...@gmail.com
Just in case Aleksandar Bilanovic or anyone else still needed it:

Reply all
Reply to author
Forward
0 new messages