Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. coderiyer

    GZip + Blowfish

    Hi sedj! Thanks for all your help and time. I will take it from here. It must have been frustrating but I really appreciate for sticking and helping me through it. -coderiyer
  2. coderiyer

    GZip + Blowfish

    Here again are the steps followed in getting the encrypted URL. These were defined 4 years ago before by time. The application is in production except that this particular client is using it differently (calling it in a loop from his program to generate multiples URLs.) I replaced the Base64...
  3. coderiyer

    GZip + Blowfish

    Your code looks fine though I have not incorporated or tried to run it as is since my code looks familiar. Is there an encoding that could be messing up the final output? BTW, Base64 sometimes appends a "=" and so to be doubly sure URL encoding is done at the end. And the strings that fail do...
  4. coderiyer

    GZip + Blowfish

    Hi sedj! Thanks for your reply again. There is also a Base64 encoding that's done after the encryption step. And then the result is URL encoded before it is returned. Is there anything in particular that I need to watch out for like encoding type. Anything that you can think of would really be...
  5. coderiyer

    GZip + Blowfish

    public static byte[] encryptSecretKey(byte[] keyBytes, byte[] unencrypted) { try { Provider sunJce = new com.sun.crypto.provider.SunJCE(); Security.addProvider(sunJce); SecretKeySpec skeySpec = new SecretKeySpec(keyBytes, "Blowfish")...
  6. coderiyer

    GZip + Blowfish

    That was my next question to you. I was wondering why the zipped length should have a bearing on the encryption. I will explain what's happening when the zipped length changes. The input string length is a constant at 253 characters (though the string itself is not). Now, for the most part, the...
  7. coderiyer

    GZip + Blowfish

    Thanks a lot for this piece of information! I did not know this. Then what are my alternatives? I need to send this as the input to the Blowfish encryption program which gives an invalid output because of what you have described to be the working of GZIP. Is there another class that I can use...
  8. coderiyer

    GZip + Blowfish

    Hi sedj! Thanks for your response again. I verified that the same string gives the same zipped length every time. What I noticed was that my input string length is the same but it differs in just the timestamp (the input string is a concatenated string of different parameters, with timestamp...
  9. coderiyer

    GZip + Blowfish

    Hi sedj! Thanks for your response. Let me expand on what I mentioned in my post. It is not that the zip method would generate a different value in one or more of the 100 iterations. But, if you repeat the same 100 iterations multiple times, say repeatedly 10 or 15 times (in essence 1000 or 1500...
  10. coderiyer

    GZip + Blowfish

    Hello! I am working on a problem with an existing application used to generate encrypted URLs. The application 1. URL encodes the payload 2. Generates a checksum which is prepended to the payload 3. The result is zipped using GZipOutputStream (for compression) 4. The GZipped string is then...

Part and Inventory Search

Back
Top