Groovy web console

subscribe to the feed Subscribe
to this


Published 1 month ago by I.K.
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String cavvAsBase64 = 'YwAAABQAAleMZM4Fbs8DgJtgAgA='
byte[] cavvBytes = cavvAsBase64.decodeBase64()
String cavvPlain = new String(cavvBytes)
String cavvAsHex = cavvBytes.encodeHex()

println cavvAsBase64
println cavvPlain
println cavvBytes
println cavvAsHex.toUpperCase()