Encrypt a Text with SHA512

Steps

  1. Create a project digest_project.
  2. Create a JavaScript service with the name digest_sha512.js.
  3. Enter the following content:
1
2
3
4
5
6
7
8
9
10
11
12
13
var digest = require('utils/v3/digest');
var response = require('http/v3/response');

var input = [61, 62, 63];
var result = digest.sha512(input);

console.log(result);
response.println(JSON.stringify(result));

response.flush();
response.close();


For more information, see the API documentation.

Edit