kim pham wrote:Hi,
Didn't get the any exception? But it returns a null value.
Any suggestion?
KP
Greg Burdett wrote:I had the same issue with Java 1.5 (on Windows 2008 / 64), "Cannot locate policy and/or framework files ". I got the policy strength files from Oracle, then unzipped them into the C:\Java64\jdk1.5.0_22\jre\lib\security directory. However, the ZIP file had a path of "jce" for the policy JAR files, and so unzipping them placed them at: C:\Java64\jdk1.5.0_22\jre\lib\security\jce. Even though I put that entry in the Path environment variable, they were still not found. I copied them up one level, to C:\Java64\jdk1.5.0_22\jre\lib\security, and then my Java program worked and performed 256 bit encryption / decryption, so it obviously found the files.
Greg Burdett
Sud Umm wrote:It works fine only on Windows platform, but not on others.
Pat Farrell wrote:
What is your problem? In my initial response, I did not say his code was "wrong" or needed "correction"
Go find a fight with someone who cares about what you are ranting about.
Pat Farrell wrote:
greg stark wrote:Since the low order bit is ignored, your key is equivalent to James', not better or more correct.
Yes, that was my intent, to show an equivalent set of octets to his as they are interpreted by any compliant DES cipher. For purposes of enciphering or deciphering using DES, James' and my keys are exactly the same.
I presented my version with the comment that it was a nit for a reason.(Wikipedia: As nitpicking inherently requires fastidious, meticulous attention to detail, the term has become appropriated to describe the practice of meticulously searching for minor, even trivial errors in detail (often referred to as "nits" as well), and then criticising them (see nitpicking (pastime)).)