How do I get Google Apps Script to do SHA-256 encryption?
问题 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,