I am trying to encryption a string using SHA1 encryption. Test string
The quick brown fox jumps over the lazy dog
2fd4e1c67a2d28fced849ee1bb76e7391b93eb12 (encryption token)
You can validate this here http://www.sha1-online.com/
But if I use same string in Salesforce with this code
blob hashSHA1 =Crypto.generateDigest('SHA1', blob.valueOf('The quick brown fox jumps over the lazy dog'));
String hashBase64SHA1 = EncodingUtil.base64encode (hashSHA1);
System.debug (hashBase64SHA1);
Then I get the output
L9ThxnotKPzthJ7hu3bnORuT6xI=
If anyone can let me know what I am doing wrong here or if I need to update anything or the correct method that would be helpful.
base64encode
function?