Skip to content

Base64 Text Encoder/Decoder does not respect end-of-lines-sequence #1535

@vesnikos

Description

@vesnikos

Current behavior

(I am using Render Line Endings to show the end of lines)

Base64 Text Encoder/Decoder does respect of lines sequences when enconding to base64:

ie: the following is using CRLF:

Image
returns:
dGhpcyBpcyBhIHdpbmRvd3MgbGluZQ0KYW5vdGhlciB3aW5kb3dzIGxpbmUNCg==

But the following: (using LF)

Image
returns also
dGhpcyBpcyBhIHdpbmRvd3MgbGluZQ0KYW5vdGhlciB3aW5kb3dzIGxpbmUNCg==

(it should return dGhpcyBpcyBhIHdpbmRvd3MgbGluZQphbm90aGVyIHdpbmRvd3MgbGluZQ== )

this could lead in situations, especially in devOps as described in openssl/openssl#20054

Also opened a feature request for the user to be able to select which line-ends wants to have: #1534

How to reproduce it (as minimally and precisely as possible)

No response

Expected behavior

The tool should be respecting the end-of-line-sequences

Screenshots

No response

Workaround

no workaround

Affected platforms

Windows

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

Version 2.0-preview.8

Relevant Assets/Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions