Excel help - difficulty [hard] lol

Excel help - difficulty [hard] lol

Author
Discussion

audi321

Original Poster:

5,448 posts

219 months

Tuesday 20th December 2022
quotequote all
Hi all. I need to be able to convert a cell into SHA256 value.

Anyone know where to start?

This page seems to have the script, but I think it's more complicated than it needs to be.......is there an easier option?

https://codedocu.com/Office-365/Excel/Templates/Ex...

Thanks all.

Edited by audi321 on Tuesday 20th December 18:37

colin_p

4,503 posts

218 months

Tuesday 20th December 2022
quotequote all
Are you a Bond villain? bowtie


audi321

Original Poster:

5,448 posts

219 months

Tuesday 20th December 2022
quotequote all
Lol i wish!

Mazinbrum

975 posts

184 months

Tuesday 20th December 2022
quotequote all
From ChatGPT, no idea if correct:
You can use the following formula in Excel to compute the SHA-256 hash of a string:

=HASHBYTES("SHA2_256", [string])

For example, to compute the SHA-256 hash of the string "Hello, world!", you would use the following formula:

=HASHBYTES("SHA2_256", "Hello, world!")

This will return the hash as a hexadecimal string.

Keep in mind that the HASHBYTES function is only available in Excel 2016 and later versions. If you are using an earlier version of Excel, you will need to use a different method to compute the SHA-256 hash.

AdeTuono

7,370 posts

233 months

Tuesday 20th December 2022
quotequote all
I don't consider myself a particularly stupid person, until I come across a thread like this.

audi321

Original Poster:

5,448 posts

219 months

Tuesday 20th December 2022
quotequote all
Thanks for the Hashbytes command but I simply cannot get this to work (I have >2016 version).

However, it looks like I have a solution now. I've finally found an online encoder which can do batch encoding on different lines (99% of them just treat different lines as the same string).

https://www.miraclesalad.com/webtools/sha256.php

I'll just upload the string to encode and then paste it back into the excel document.

Thanks all.

oxnop

153 posts

147 months

Wednesday 21st December 2022
quotequote all
AdeTuono said:
I don't consider myself a particularly stupid person, until I come across a thread like this.
Haha. I second this.