I am trying to convert a byte[] to a Base64 string.
string output = Convert.ToBase64String(SQLDataHelper.EncryptAddValue(modifiedField.Value[nameof(RecordHistoryField.PreviousValue)]));
After plugging this output value into an online Base64 to Binary converter, I can see that it is not the correct value. It returns a list of random characters.
Note that the byte[] is showing the correct values ex: {94, 85, 60, ...} and when I convert it to a hex string, it gives me the binary that I am expecting, just with no 0x.
Edit:
Input: {94, 85, 60, 64, 62, 69, 77, 65, 131, 20, 125, 110, 136, 128, 87, 112}
Expected output: MHg1RTU1M0M0MDNFNDU0RDQxODMxNDdENkU4ODgwNTc3MA==
Actual output: XlU8QD5FTUGDFH1uiIBXcA==