Hi Denis,
Well in my case the (current, for a Password field) flow would be:
a- XObject save or update : Browser ---save---> Server, password in clear
in save request
b- XObject storage in DB : value encrypted as it's a password field ? I
didn't check that, right now I don't know
c- Later, use of the password (Server side) for a connection : retrieve
password from DB (now, in clear anyway in a Java object), do some logging
(issue initially described), connect to the system with user/password, done
For a- clearly I have no option unless using some javascript to do some
encryption at this stage. To be honest it doesn't trouble me much, but if
it were I would go for HTTPS...
For b- not only would I need to encrypt the password, but I must be able to
do that before the XObject is actually saved by xwiki. I suppose I could
register some events to manage pre-creation or pre-update encryption (maybe
it's the same thing btw)
For b- and c- question is of course of using your nice Crypto API, but also
where to store the secret. Both sides being the same (xwiki server), I
think it has little meaning to use something else than a symmetric cipher
with a secret key stored somewhere, but I'm open to proposals.
Regards,
Jeremie.
2014-02-26 10:47 GMT+01:00 Denis Gervalle <dgl(a)softec.lu>lu>:
  Hi Jeremie,
 The latest XWiki release (5.4.1) now provides an extensible Crypto API.
 This is still an @Unstable API, but it is already very modular and
 complete. I have just added some information about it in the RN and link to
 its javadoc, see [1].
 Depending on your needs, you may use a symmetric cypher, or a one way
 encryption based on a key derivation function. Do not hesitate to ask if
 you need my help to use this API, until I write an appropriate
 documentation.
 Regards,
 [1]
http://xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki541#HNewexten…
 On Wed, Feb 26, 2014 at 10:37 AM, Jeremie BOUSQUET <
 jeremie.bousquet(a)gmail.com> wrote:
  Hello,
 Yes it could help, I saw it but didn't see at first there was an API 
 behind
  the UI.
 Should do the trick thanks !
 BR,
 Jeremie
 2014-02-26 8:08 GMT+01:00 Hamster <teunham(a)hotmail.com>om>:
  Maybe this can help?
 
  
 --
 View this message in context:
 
  
http://xwiki.475771.n2.nabble.com/A-problem-of-secret-with-jobs-tp7589308p7…
   Sent from
the XWiki- Dev mailing list archive at 
Nabble.com.
 _______________________________________________
 devs mailing list
 devs(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/devs
  _______________________________________________
 devs mailing list
 devs(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/devs
  
 --
 Denis Gervalle
 SOFTEC sa - CEO
 _______________________________________________
 devs mailing list
 devs(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/devs