===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Ulf Dittmer wrote:Check out new SecretKeySpec(byte[], String).
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Pat Farrell wrote:I'd change the requirements so you can run on a modern Java.
Most of the time, folks use the APIs in the JCE to handle all the text to String to ASN.1 to octet stuff. The ASN.1 stuff is particularly ugly.
I seriously doubt that looking at the C code that does the ASN.1 mangling will help, as ASN.1 itself is amazingly complex for the tiny amount of useful work that it does.
Pat
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris wrote:Is there an alternative to the JCe Cipher class that I can use?The JVM on which the app must run doesn't seem to have it...Or should I just add it to the classpath?
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris wrote:This is frustating....the code that generates the key isn't available.I can just see an interface with the methods used and some sort of reference to a .dll contained in the project...
I say that the string is Base64 encoded because at some point when I was using the methods below it complained about characters that were not part of Base64 encoding scheme.Argg...
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Pat Farrell wrote:
Duran Harris wrote:Is there an alternative to the JCe Cipher class that I can use?The JVM on which the app must run doesn't seem to have it...Or should I just add it to the classpath?
Just add it to the classpath. Its not part of the standard distribution because some governments have restrictions on crypto. The Java maintainers want to be free to distribute the JDK and JRE, one version for the whole world. So JCE has to be an addon.
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris wrote:Yay!! I got the method disassembled using .NET Reflector!!Can you help me further now??
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris wrote:No I wouldn't expect you to write it for me...
Could you just tell me in ,my code above(the Java code), what would I need to change in order to get it to work?
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris wrote:No I wouldn't expect you to write it for me...
Could you just tell me in ,my code above(the Java code), what would I need to change in order to get it to work?
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris wrote:I have access to all the encryption code now....If you would like to see...
Also my colleague said that that code shouldn't be a problem because: 'why would you have more than one block'?
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris wrote:The information that I actually expected to be encrypted has only been MD5'd .
The information that was encrypted with Bouncy Castle is of no use to my requirements.I did write the Java code that duplicates the bug in the C#, but I will leave it for someone who actually understands encryption to fix.Or seeing as theres nothing really useful to decrypt,I can have a look at that cryptography book at my own leisure...
Sorry for wasting so much of your time on this
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|