how to decode MD5 encrypted string?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2018 02:23 AM
how to decode MD5 encrypted string?
I have used below code to encrypt a string.
var inputString = "Her molasses flowed slowly down the hill."; var digest = new GlideDigest(); gs.info(digest.getMD5Base64(inputString));
Output:
SKdikyauk31LyQYS9KJ/gQ==
I want to get back the original string.
Please suggest the decode function for MD5 code.
Regards,
Sumit Jumale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2018 03:09 AM
MD5 is a hashing algorithm, not meant for encrypting and decrypring. For that purpose use GlideEncryptor API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2018 03:15 AM
Thanks Arnoud...!
My client is asking to use MD5 for rest integration. I am aware of REST integration but not aware using MD5.
Can you please help me here ? any sample document is highly appreciated ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2018 03:20 AM
You should ask client to clarify the requirement, as stated in my first response endode a string to MD5 not decrypt to get the original message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2018 03:32 AM
Thanks for your quick response...!
My Client requirement is about using MD5 for authentication. Client as rest API configured in some other tool.
We need to bring data from other tool to servicenow using get method. Fot GET method he wants to use MD5 authentication.
Can you please suggest any approach for this requirement ?
Regards,
Sumit