Forum Stats

  • 3,758,206 Users
  • 2,251,354 Discussions
  • 7,870,108 Comments

Discussions

utf-8 encoding difference

Rajeev_Green-Oracle
Rajeev_Green-Oracle Member Posts: 32 Employee
edited Dec 7, 2018 2:47PM in Java User Groups Discussions

Hello,

We are trying to migrate from Java 7 to Java 8.

We are using utf-8 encoding scheme for the password salt like String s = new String(salt,utf8)

The salt byte array from Java 7 differs to Java 8.

How to make it work on Java 8 so we have the same byte sequence generated.

Answers