Far form me the idea of respicing each language's idiomatisms
JavaScript's encrypt method takes one parameter, a literal containing all information:
key, IV and message.
Java initialize its object with password information and then the encrypt method takes 2
parameters: IV + message
Both JS and Java methods have the same name: encrypt.
My proposal was just to try to gather together the information in a more similar way.
On Oct 19, 2013, at 5:09 AM, Kris Borchers <kris(a)redhat.com> wrote:
On Oct 18, 2013, at 9:48 PM, Douglas Campos <qmx(a)qmx.me> wrote:
> On Fri, Oct 18, 2013 at 11:52:11PM +0200, Corinne Krych wrote:
>> Doug,
>>
>> Thanks for your reply.
>> I think one the goal of AeroGear is to provide an unified API across
>> different platforms even if it brings some challenges…
>> I'm convinced we can come up with a similar API for encryption.
>
> That's exactly what I'm talking about, the APIs are similar, but they
> should respect the languages' idiomatisms:
>
> // JS code
> x.encrypt({a:'', b:''});
>
> // Java code
> x.encrypt(a, b);
>
> Why should I impose Java style over JS?
+9001
>
> --
> qmx_______________________________________________
> aerogear-dev mailing list
> aerogear-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev