VMware Cloud Community
mayank_goyal
Enthusiast
Enthusiast

vRO EncryptionService

Apart from using SecureString & EncryptedString, we can also use EncryptionService object which provides an easy-to-use optionby which you can create a one-time key to encrypt and decrypt plain text.

var key = EncryptionService.generateOneTimeKey();
System.log(key); //G75Ypi8PHD0zYeiXQ32PiA==
var encryptedString = EncryptionService.encrypt("abcd1234",key);
System.log(encryptedString); //vro:enc:v1:pzqwDVjvz4h7Qg8uEJNq/IKfXyCz7S+ht72sHLMvztlX4Geh
var decryptedString = EncryptionService.decrypt(encryptedString,key);
System.log(decryptedString); //abcd1234

 



-
For more interesting content on Aria Automation, check my blog:
https://cloudblogger.co.in
0 Replies