Skip to content

Bug: base64 decoding adds extra null bytes #40

@Tschrock

Description

@Tschrock

Describe the current behavior

When decoding base64 text, there will sometimes be extra padding bytes added to the end of the decoded data.

Here's an example where I'm encoding and decoding the same value, and you can see it added extra null characters to my string:

image

Describe the expected behavior

base64 encoding should be symetric and not add extra bytes.

Steps to reproduce the bug

  1. Navigate to ciphereditor.com.
  2. Add two "Binary to text encoding" blocks
  3. Link the encoded data fields

Version, Environment, Platform

  • ciphereditor version: Whatever the current release on https://ciphereditor.com/ is (I can't find a version number listed anywhere)
  • Browser and browser version (if applicable):
    • Google Chrome Beta - 130.0.6723.31
    • Firefox Developer Edition - 131.0b5 and 132.0b5
  • Operating system:
    • Windows 10 Home - 22H2 - 19045.4894

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions