sha256

How do I get Google Apps Script to do SHA-256 encryption?

こ雲淡風輕ζ 提交于 2020-12-04 08:58:30
问题 I need to encrypt strings with TEXT input, 1 round, HEX output, SHA-256 encryption. Which should be a string of characters of length 64. Every SHA-256 encryption module I've tried in Google Apps Script docs returns a set of numbers. For example. function SHA256() { var signature = Utilities.computeHmacSha256Signature("this is my input", "my key - use a stronger one", Utilities.Charset.US_ASCII); Logger.log(signature); } Outputs [53, -75, -52, -25, -47, 86, -21, 14, -2, -57, 5, -13, 24, 105,

How do I get Google Apps Script to do SHA-256 encryption?

耗尽温柔 提交于 2020-12-04 08:58:12
问题 I need to encrypt strings with TEXT input, 1 round, HEX output, SHA-256 encryption. Which should be a string of characters of length 64. Every SHA-256 encryption module I've tried in Google Apps Script docs returns a set of numbers. For example. function SHA256() { var signature = Utilities.computeHmacSha256Signature("this is my input", "my key - use a stronger one", Utilities.Charset.US_ASCII); Logger.log(signature); } Outputs [53, -75, -52, -25, -47, 86, -21, 14, -2, -57, 5, -13, 24, 105,

How do I get Google Apps Script to do SHA-256 encryption?

本秂侑毒 提交于 2020-12-04 08:57:54
问题 I need to encrypt strings with TEXT input, 1 round, HEX output, SHA-256 encryption. Which should be a string of characters of length 64. Every SHA-256 encryption module I've tried in Google Apps Script docs returns a set of numbers. For example. function SHA256() { var signature = Utilities.computeHmacSha256Signature("this is my input", "my key - use a stronger one", Utilities.Charset.US_ASCII); Logger.log(signature); } Outputs [53, -75, -52, -25, -47, 86, -21, 14, -2, -57, 5, -13, 24, 105,