Lynn Owens

Greenhorn
+ Follow
since Aug 24, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Lynn Owens

After days of sticking with it... here is the solution. The problem was apparently confusion between Base64 from two different packages.

5 years ago
Found it

org.bouncycastle134.jce.provider.BouncyCastleProvider
5 years ago
It's a SecurityProvider, but ... where can I learn more about it?
5 years ago
Here's the un-redacted encrypted value ...

MIHuBgkqhkiG9w0BBwaggeAwgd0CAQAwgdcGCSqGSIb3DQEHATAKBggqhkiG9w0DBICBvcs6iLO2VGfU7KzJmpU0y5lBsRYAs1tOdZKW6fmJ4XXQUgUyl7rcYUGSa5hu+XfbAFGRHwdLS4LSClP34srZ8aF8KtxXxdYbvxZ7s5xjnleHN8GBneh1ocoofaXLWmoFUa/WS47oQXGY80jSJ/Dm1B28Pt+VerKQtkr8sTRoSwtXWf5RuspfCGFvMddea2xuO5PX+14A+/8VfYuCRjjxMOMWE5suKfBunQICws86QkewfqxbTmOVKsB7kgXKag==

5 years ago
Although I'm not encrypting anything, I am doing a Base64 decode before decrypting. Then I believe the value translates to a DERObject that encapsulates the actual content. I try to extract the content, decrypt it, and display it.
5 years ago
Ok yup it was fundamental, duh, I was printing a byte[]. lol

But unfortunately the problem is not truly solved. By using the following I converted the byte[] to a String and printed it, but I'm still getting the wrong values.



Now it's outputting:

???L ?A??=?@+?A ?h?B???F?
be??? ???4? ? ???6w???>(???i?&?>?{d?ib)+?es?m??E '??4 T/?????_?
i]??v<\???g ?RN?d?/?}?N?+w+a??L???-?8?? ?a ??eS???6?*?
5 years ago
After banging on this for some time, I'm still getting basically the same result with significantly different code.



Outputs: [B@10ef90c

There's somethign fundamental I'm missing here...
5 years ago
Hi,

I am trying to decrypt a value using a key stored in a keystore. It's not throwing any exceptions but the "decrypted" value is wrong.

It's spitting out things like: [B@1befab0

This is what I've got.



Any ideas?
5 years ago
Here's my solution...

index.jsp ...



struts.xml ...



your action handler...

5 years ago

Bear Bibeault wrote: You can generate a new request and pass a variable as a request parameter. But it's a brand-spanking new request and has nothing at all to do with the request instance that generated the page.



Ding ding ding ding! You understand me now!

Bear Bibeault wrote: That's a crucial concept to understand.



Understanding is crucial, yes!
5 years ago
Actually I'm not sure how closely you're reading what I write. I suggested you were upset by your bold comment.

Bear, I do not intend to read a six page document to find out how to send a variable back to an action handler. I don't want to read about two county clerks or enjoy the patronage of a metaphor. I just want one thing answered, "How can I send a variable back to an action handler, and does the action handler get that variable".

What is the struts version of ?foo=bar and HttpServletRequest.getParameter(String) ?
5 years ago
I don't mean to upset you, I'm sorry if I am. I asked just now about a link. Nevermind. I'll go google somewhere else how to pass variables into an action handler. It's not worth arguing.
5 years ago
OK -

Can I have a link send a variable back to the action handler?

Something like



And if so, how do I get the value of this variable in the action handler?
5 years ago