puneet's profileAchilles WatchesPhotosBlogListsMore Tools Help

Blog


    JavaScript document.write doesnot work in XML

     
    I was working with an XML file which had spit out HTML . This XML file  contained a document.write("<script> .... </script>"); which was breaking the xml file.  For more details go HERE. Anyway, the problem was fixed by writing the javascript in a seperate .js file and it was included in the HTML page.
     
    Enjai,
    Puneet.H

    PKCS7 in .Net and PKCS5Padding in Java with JCE

     
    My Client was encrypting using JCE on a app server running Java 1.3. The padding he was using is PKCS5 padding while in .Net i was using PKCS7 padding mode to decrypt. Both of us were using AES/Rijndael algorithm for encryption and decryption purposes.
    I was wondering if the two padding modes were compatible. Yes, they are compatible with each other to block sizes between 1 and 255 bytes inclusive.  
    For further info go here.
     
    Enjai,
    Puneet.H