Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-234

Base32.decode should support lowercase letters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.10
    • 1.11

    Description

      Base32.decode accepts a String input, but any lowercase characters are ignored – e.g. Base32.decode("abcd2345") will give a different result than Base32.decode("ABCD1234") with no errors and a surprise to a developer.

      Accepting any case is desirable, as RFC 4648 makes it clear that case-insensitivity is a goal for Base32 encoding.

      Attachments

        1. CODEC-234-3.diff
          5 kB
          Christopher Schultz

        Activity

          People

            Unassigned Unassigned
            chris@christopherschultz.net Christopher Schultz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: