Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-212

Implement password encoding charset option

Details

    • Task
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.9
    • Other
    • None

    Description

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

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

      Attachments

        Issue Links

          Activity

            diego dupin Diego Dupin added a comment - - edited

            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.

            diego dupin Diego Dupin added a comment - - edited 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.

            People

              diego dupin Diego Dupin
              diego dupin Diego Dupin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.