BASE64 encode in groovy

www.la‮oc.iruttu‬m
BASE64 encode in groovy
def s = 'Hello'
 
String encoded = s.bytes.encodeBase64().toString()
assert encoded
 
byte[] decoded = encoded.decodeBase64()
assert s == new String(decoded)
Created Time:2017-09-07 23:19:05  Author:lautturi