18 Jul
2010
18 Jul
'10
9:46 p.m.
I got it right. For some reason, I thought I had to convert the key to HEX. I was wrong. I changed the code like below and it worked... :) for secretkey, String secret = "titititititititititititititititi"; (the one from xwiki.cfg) byte[] theKey = secret.getBytes(); KeySpec ks = new DESKeySpec(theKey); SecretKeyFactory kf = SecretKeyFactory.getInstance("DES"); this.secretKey = kf.generateSecret(ks); Thanks, Manish -- View this message in context: http://xwiki.475771.n2.nabble.com/Single-sign-on-tp5299320p5309729.html Sent from the XWiki- Users mailing list archive at Nabble.com.