Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (24 sloc) 603 Bytes
layout title icon group
samples
Encrypt a Text with SHA512
fa-caret-right
simple

{{ page.title }}

Steps

  1. Create a project digest_project.
  2. Create a JavaScript service with the name digest_sha512.js.
  3. Enter the following content:
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.