[CONJ-212] Implement password encoding charset option Created: 2015-11-05  Updated: 2017-03-19  Resolved: 2017-03-03

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: None
Fix Version/s: 1.5.9

Type: Task Priority: Minor
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-12300 password encoding Open

 Description   

String password are send to server according to platform's default charset.

new option passwordCharacterEncoding must permit to define password encoding if set.



 Comments   
Comment by Diego Dupin [ 2017-03-02 ]

There is 2 differents problems concerning password encoding :

  • password are crypted in some hash based on password current passwords bytes value, that is charset connection dependant (current @@character_set_client).
  • java driver send password crypted hash base on from password byte array. this array is using String.getBytes(), so depending on Charset.defaultCharset(), that is os dependant.

Client side, adding passwordCharacterEncoding option will permit to handle that.

Generated at Thu Feb 08 03:14:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.