Security

Is there a Splunk command to decrypt encrypted values under domain field?

VijaySrrie
Builder

Hi All,

I have encrypted the user field with sha256 

index=abc   sourcetype=xyz
| eval domain = sha256(User)
| table  domain

I am able to see encrypted values under domain field

Is there a splunk command to decrypt it?

Labels (1)
Tags (1)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

Encryption and hashing are different things - you are not "encrypting" data, you are just creating a hash of the data (User) 

https://en.wikipedia.org/wiki/Hash_function

For example, if you think that A=1, B=2 etc, then a "hash" of the word "HELLO" could be 52 (8+5+12+12+15)

But you cannot reverse 52 to make the word "HELLO" again - 52 could equally be ZZ or 52 letter A

 

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Encryption and hashing are different things - you are not "encrypting" data, you are just creating a hash of the data (User) 

https://en.wikipedia.org/wiki/Hash_function

For example, if you think that A=1, B=2 etc, then a "hash" of the word "HELLO" could be 52 (8+5+12+12+15)

But you cannot reverse 52 to make the word "HELLO" again - 52 could equally be ZZ or 52 letter A

 

0 Karma

yuanliu
SplunkTrust
SplunkTrust

sha256 is a hash function, meaning that you cannot "decrypt" the output.  It would have a profound impact in data security if anyone finds a way to reverse the output. (sha1 has been known to be insufficient for years but it wasn't until rather recently when Google managed to create a collision using their very powerful TPUs.  Even then, it wasn't to decrypt the hash value; the only attack mode to a hash function is hoping to find a string that will produce the same hash value.  There is no way to know whether the collision value is the original value.)

Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...