Re: Same text, different Signature with each execution

2013-04-01 Thread Manuel Alejandro Fernandez Casado
Hi Jens. I updated your JUnit with this method: private boolean verify(byte[] clearText, byte[] signature) throws Exception { signer.initVerify(keyPair.getPublic()); signer.update(clearText); return signer.verify(signature); } First argument i pass "Hello World!!!", and second the previ

Re: Same text, different Signature with each execution

2013-04-01 Thread Manuel Alejandro Fernandez Casado
Hi Jens. Thank you so much for your answer. I´ll take a look. El lunes, 1 de abril de 2013 01:50:56 UTC+2, Jens escribió: > > No idea. Only thing I would change is to explicitly use a Charset like > UTF-8 in String.getBytes() and probably inside Base64Utils.toBase64(). As > you only use JRE c

Re: Same text, different Signature with each execution

2013-03-31 Thread Manuel Alejandro Fernandez Casado
Anyone? :-( El sábado, 30 de marzo de 2013 18:27:32 UTC+1, Manuel Alejandro Fernandez Casado escribió: > > Hi. > > I´m using GWT 2.5 and I´m trying to sign a text, that is always the same. > > Code (exceptions ommited): > > public String sign(String text) { > Strin

Same text, different Signature with each execution

2013-03-30 Thread Manuel Alejandro Fernandez Casado
Hi. I´m using GWT 2.5 and I´m trying to sign a text, that is always the same. Code (exceptions ommited): public String sign(String text) { String sign = null; Signature signer = Signature.getInstance("SHA1withRSA"); signer.initSign(privKey); signer.update(text.getBytes()); sign = Base64Utils.t

Re: Tutorial for security in GWT + GAE (Cloud SQL) + Request Factory

2012-12-20 Thread Manuel Alejandro Fernandez Casado
filter. > > regards > ashwin > > On Wednesday, December 19, 2012, Manuel Alejandro Fernandez Casado wrote: > >> Any? :( >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >

Re: Tutorial for security in GWT + GAE (Cloud SQL) + Request Factory

2012-12-18 Thread Manuel Alejandro Fernandez Casado
Any? :( -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/s3sy6jBMjMwJ. To post to this group, send email to google-web-toolkit@googlegroups.com.

Tutorial for security in GWT + GAE (Cloud SQL) + Request Factory

2012-12-18 Thread Manuel Alejandro Fernandez Casado
Hi. I´m searching for information about how to secure an application with GWT + GAE + Request Factory. Again, information is disperse, official documentation is a little incomplete, and best advices comes from experience. My application has next features: - It uses his own users: i mean, t