DEFLATE compression tools

Tom Scavo trscavo at gmail.com
Mon Nov 28 09:52:52 EST 2016


On Wed, Nov 23, 2016 at 1:31 PM, Christopher Bongaarts <cab at umn.edu> wrote:
> On 11/23/2016 12:26 PM, Tom Scavo wrote:
>>
>> I'm trying to write a bash script that DEFLATEs and base-64 encodes an
>> AuthnRequest as described in SAML Core. I can use openssl to base-64
>> encode but I can't find a bash tool that will do DEFLATE compression.
>
> There are a bunch of ideas in this thread:
> http://stackoverflow.com/questions/3178566/deflate-command-line-tool

Thanks for the pointer. The above thread is about decompressing a file
in the ZLIB compressed data format (RFC 1950). Both ZLIB and GZIP (RFC
1952) are wrappers around DEFLATE-compressed data. I'm interested in
the latter.

For the archives, this thread shows how to obtain a DEFLATE-compressed
data stream from a GZIP file:

http://stackoverflow.com/questions/27066133/how-to-create-bare-deflate-stream-from-file-in-linux

This worked perfectly.

Thanks,

Tom


More information about the dev mailing list