> FYI, I was able to deflate the 427 compressed bytes you sent me privately

Opps, it wasn’t meant to be private; hit the wrong “reply” button I guess. 
Java’s DEFALTE output is below just for completeness.

--
James Manger

From: Manger, James H
Sent: Thursday, 20 December 2012 11:26 AM
To: 'Mike Jones'
Subject: RE: Reducing the size of JWS payloads

Hi Mike,

Here are the 427 compressed bytes I get (from Java’s java.util.zip.Deflater 
class, as implemented by Oracle):
21 200 201 178 107 64 0 0 208 47 146 34 166 100 137 110 67 211 210 72 135 216 
40 83 12 49 94 17 228 235 95 189 179 60 229 129 234 204 200 155 91 131 2 202 
194 61 250 209 198 209 80 151 245 248 255 169 248 110 9 30 139 128 205 214 119 
220 210 179 53 176 167 184 31 186 57 172 218 232 152 183 246 79 206 35 243 88 
46 186 124 77 7 139 90 18 58 211 176 80 14 223 131 185 161 82 198 38 230 82 18 
124 229 216 196 31 239 192 88 57 43 20 88 48 176 197 55 47 30 176 157 80 78 136 
107 101 191 48 199 59 104 56 158 131 109 89 49 217 229 209 132 226 51 18 71 191 
120 22 141 47 84 56 0 64 229 251 236 109 13 216 165 250 157 33 182 168 173 177 
63 152 234 249 143 218 226 171 38 171 46 69 250 236 56 177 102 136 94 242 135 
122 9 126 203 157 137 156 220 245 20 228 166 28 35 105 22 229 206 97 203 247 4 
238 251 118 253 102 195 226 1 42 171 130 250 234 235 226 104 94 157 163 200 74 
41 198 198 248 240 59 94 73 146 195 33 209 238 183 166 94 79 183 18 76 73 90 
236 23 247 40 91 93 204 127 215 3 216 212 89 43 119 1 184 232 204 18 121 55 108 
60 156 103 26 196 31 222 38 82 26 186 193 172 43 28 49 65 197 112 108 94 174 
119 248 153 147 47 129 2 99 124 202 175 224 10 182 0 215 162 107 5 239 164 236 
207 11 208 62 32 53 186 37 51 186 54 227 253 49 246 78 254 190 180 149 68 44 
184 231 189 17 232 178 51 4 240 13 230 208 178 95 202 198 109 241 239 28 77 105 
246 16 201 230 45 99 103 111 48 93 195 103 236 194 171 199 213 49 130 241 233 
226 68 51 46 88 228 24 203 142 83 85 92 71 55 197 83 37 175 52 76 38 129 245 
187 52 54 181 13 91 199 239 253 15

I can uncompress your 536 bytes to the original 526.


P.S. I personally find it much easier to handle binary data in hex than as 
decimal integers. Perhaps decimal is used in the JOSE specs so a JSON array of 
numbers can be used to represent the binary data, though that doesn’t seem 
particularly useful.

--
James Manger

_______________________________________________
jose mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/jose

Reply via email to