Giter VIP home page Giter VIP logo

Comments (7)

DanGough avatar DanGough commented on June 26, 2024 1

This works to convert, tested with one of the actual values to confirm:

[System.BitConverter]::ToString([Convert]::FromBase64String($Hash)).Replace('-', '').ToLower()

from evergreen.

DanGough avatar DanGough commented on June 26, 2024 1

Thank GitHub Copilot 😂

from evergreen.

aaronparker avatar aaronparker commented on June 26, 2024

Decoding from base64 doesn't give us much to work with:

$base64String = "4rX5bXdtzujmFu6u12fKCcudIEoMMDNUDpgMIrgM79I="
$bytes = [System.Convert]::FromBase64String($base64String)
[System.Text.Encoding]::UTF8.GetString($bytes)

Returns this:

��mwm�����g�	˝ J
                   03T�
                       "
                         ��

from evergreen.

teknowledgist avatar teknowledgist commented on June 26, 2024

Yeah, I added the ? because I don't know if it is base64. I couldn't get anything meaningful out of it either, but it sure looks like Base64.

I guess all I'm trying to do is point out that the sha256 attribute is incorrect. I don't know which end of the process creates the problem. (IMHO, it's probably Microsoft.)

from evergreen.

aaronparker avatar aaronparker commented on June 26, 2024

I think it's base64 too, everything I plug it into says it's base64. I don't understand why we aren't getting anything meaningful out of it.

The value comes straight out of the update feed from MS. Should be the property be removed perhaps?

from evergreen.

teknowledgist avatar teknowledgist commented on June 26, 2024

Unless we expect MS to care enough to fix the problem, I would say it should be removed. Better to not have a checksum property at all than to claim to have one but it is wrong/invalid.

I suppose there is a middle ground, but it requires some validation: Confirm that what the feed returns is hexadecimal and 64 characters long. If not, leave the sha256 property blank (or remove it) for that version.

from evergreen.

aaronparker avatar aaronparker commented on June 26, 2024

thanks @DanGough

from evergreen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.