Jump to content
Changes to the Jaspersoft community edition download ×

dynamic key encryption - need javascript or PHP example


barkoco

Recommended Posts

So I've scoured the net (best I can) for any examples of javascript or PHP that encrypt a password with an RSA public key using the Bouncy Castle provider (RSA/NONE/NoPadding algorithm).  The samples from the install don't work (at least I couldn't get them to - encrypt.js, encrypt.html, etc).

The code has to work with JRS 5.5.0 CE server encryption.  I have turned on dynamic key encryption, so will be getting public key before every http call and encrypting the password before sending to server.  Ironically, I can send plain text passwords just fine, so I guess dynamic key encryption has a fallback and works with plain text too.

In addition to any code examples, does the client have to base64 encode the encrypted password before sending it?  The SOAP docs mention encoding the userid and password, but not the REST docs.

This topic seems to be a guarded secret to those learning how it works.  Lots of online postings, but very little working assistance.

My client app is PHP, so that is easier to integrate, but can use javascript also.  Will be very grateful for either one.

Thanks in advance.

Chris

Link to comment
Share on other sites

  • 10 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...