Re: RFC: Make new versions of pgjdbc Java8+ - Mailing list pgsql-jdbc

From Mark Rotteveel
Subject Re: RFC: Make new versions of pgjdbc Java8+
Date
Msg-id c31a60d22defa61236f0526e76966f4e@lawinegevaar.nl
Whole thread Raw
In response to Re: RFC: Make new versions of pgjdbc Java8+  (Álvaro Hernández Tortosa <aht@8kdata.com>)
Responses Re: RFC: Make new versions of pgjdbc Java8+
List pgsql-jdbc
On 2017-04-03 13:36, Álvaro Hernández Tortosa wrote:
> On 03/04/17 13:05, Dave Cramer wrote:
> Alvaro,
>
>> So why do you want to write in java 8 ?
>
>     Not a comprehensive or ordered list, but a few reasons:
>
> - JDK comes with Base64 and cryptographic functions like PBKDF2 that
> are needed for SCRAM. In Java6 you either implement yourself or pull
> external dependencies.

Base64 can also be done using javax.xml.bind.DatatypeConverter (although
that might be a dependency you don't want given it is not in the default
modules of Java 9 and is slated for removal in Java 10(?)), and
otherwise implementing base 64 encoding or decoding is not rocket
science.
PBKDF2 has been in Java for awhile (see
http://docs.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html,
search for PBKDF2WithHmacSHA1)

Mark


pgsql-jdbc by date:

Previous
From: Álvaro Hernández Tortosa
Date:
Subject: Re: RFC: Make new versions of pgjdbc Java8+
Next
From: Jorge Solórzano
Date:
Subject: Re: RFC: Make new versions of pgjdbc Java8+