Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38259
| Path | csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | "Karl.Frank" <Karl.Frank@Freecx.co.uk> |
| Newsgroups | sci.crypt, comp.lang.java.programmer |
| Subject | Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? |
| Date | Tue, 15 May 2018 23:37:42 +0200 |
| Organization | albasani.net |
| Lines | 72 |
| Message-ID | <pdfjv8$e8s$1@news.albasani.net> (permalink) |
| References | <pdf0kv$uom$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.albasani.net efYGvysFKEPQj72V9eXRICms+NQOhWFZn6bnORny1PBpUO6ouui1CzkUnLf+JD65yvbtZNmczBsSx/UL9NmqQUrBVOCrNirqwmIwksIY8QCbEe8ZXV+bCsT2quvgATn+ |
| NNTP-Posting-Date | Tue, 15 May 2018 21:37:44 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="TO6ZYVSVO6YALO+kYxL4fG29kLUofli5Up55+6s0Gg73zWU9THsqt+ra49qx0vOryP0k0D6w2QN6P62wBqH7oZSfQKmyziha1hWp4Krp3WEAYeUvTOVWCvMhGIpRXuvD"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
| In-Reply-To | <pdf0kv$uom$1@news.albasani.net> |
| Cancel-Lock | sha1:miRu93qtOI5FgCNhhsrSlV6lrQU= |
| Xref | csiph.com sci.crypt:43444 comp.lang.java.programmer:38259 |
Cross-posted to 2 groups.
Show key headers only | View raw
Holy moley! It's a buggy Java Library I'm currently using!! ### echo $LANG en_US.UTF-8 echo -n '¥' | xxd -g1 0000000: c2 a5 ### java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode) echo -n "Lsda[¥~§#€]" | java -jar pbkdf2_stdin.jar "Salt" 4096 16 sha-1 Password : Lsda[¥~§#€] Password : 4c7364615bc2a57ec2a723e282ac5d Salt : 53616c74 PBKDF2 : aba223d6679ad1e8101c01bf860f788b PBKDF2_java: 461f05924a7945a652bcabb30d87fad3 ### java -version openjdk version "1.7.0-u80-unofficial" OpenJDK Runtime Environment (build 1.7.0-u80-unofficial-b32) OpenJDK 64-Bit Server VM (build 24.80-b11, mixed mode) echo -n "Lsda[¥~§#€]" | java -jar pbkdf2_stdin.jar "Salt" 4096 16 sha-1 Password : Lsda[¥~§#€] Password : 4c7364615bc2a57ec2a723e282ac5d Salt : 53616c74 PBKDF2 : aba223d6679ad1e8101c01bf860f788b PBKDF2_java: aba223d6679ad1e8101c01bf860f788b ### java -version java version "1.6.0_41" OpenJDK Runtime Environment (IcedTea6 1.13.13) (rhel-1.13.13.1.el6_8-x86_64) OpenJDK 64-Bit Server VM (build 23.41-b41, mixed mode) echo -n "Lsda[¥~§#€]" | java -jar pbkdf2_stdin.jar "Salt" 4096 16 sha-1 Password : Lsda[¥~§#€] Password : 4c7364615bc2a57ec2a723e282ac5d Salt : 53616c74 PBKDF2 : aba223d6679ad1e8101c01bf860f788b PBKDF2_java: aba223d6679ad1e8101c01bf860f788b ### openjdk version "1.8.0_171" OpenJDK Runtime Environment (build 1.8.0_171-b10) OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode) echo -n "Lsda[¥~§#€]" | java -jar pbkdf2_stdin.jar "Salt" 4096 16 sha-1 Password : Lsda[¥~§#€] Password : 4c7364615bc2a57ec2a723e282ac5d Salt : 53616c74 PBKDF2 : aba223d6679ad1e8101c01bf860f788b PBKDF2_java: aba223d6679ad1e8101c01bf860f788b So my own implementation works correctly - what a relieve! -- cHNiMUBACG0HAAAAAAAAAAAAAABIZVbDdKVM0w1kM9vxQHw+bkLxsY/Z0czY0uv8/Ks6WULxJVua zjvpoYvtEwDVhP7RGTCBVlzZ+VBWPHg5rqmKWvtzsuVmMSDxAIS6Db6YhtzT+RStzoG9ForBcG8k G97Q3Jml/aBun8Kyf+XOBHpl5gNW4YqhiM0=
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? "Karl.Frank" <Karl.Frank@Freecx.co.uk> - 2018-05-15 23:37 +0200
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? "Karl.Frank" <Karl.Frank@Freecx.co.uk> - 2018-05-16 15:58 +0200
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? Robert Klemme <shortcutter@googlemail.com> - 2018-06-18 18:41 +0200
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2018-06-18 13:33 -0700
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? "Karl.Frank" <Karl.Frank@Freecx.co.uk> - 2018-06-19 12:54 +0200
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? Lothar Kimmeringer <news201705@kimmeringer.de> - 2018-06-19 22:18 +0200
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? Robert Klemme <shortcutter@googlemail.com> - 2018-06-19 23:20 +0200
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? "Karl.Frank" <Karl.Frank@Freecx.co.uk> - 2018-06-19 23:23 +0200
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? Robert Klemme <shortcutter@googlemail.com> - 2018-06-19 23:15 +0200
Re: Why is Java 7 converting the Password toCharArray instead of Byte in it's PBKDF2 function? "Karl.Frank" <Karl.Frank@Freecx.co.uk> - 2018-06-20 00:03 +0200
csiph-web