Global.String.prototype.enbase64 ()
returns the string encoded using the base64 algorithm

Sourcecode in /home/hannes/helma/modules/core/String.js:
628:   String.prototype.enbase64 = function() {
629:       var bytes = new java.lang.String(this) . getBytes();
630:       return new Packages.sun.misc.BASE64Encoder().encode(bytes);
631:   }