fork download
  1.  
  2. String uname = 'meta';
  3. String upass = 'pass1';
  4. Blob x = Blob.valueOf(uname + ':' + upass);
  5. String encoded = EncodingUtil.base64Encode(x);
  6. System.debug(encoded);
  7.  
Success #stdin #stdout #stderr 0.02s 12400KB
stdin
Standard input is empty
stdout
Object: String error: did not understand #uname
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
String class(Object)>>doesNotUnderstand: #uname (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:2)
Object: nil error: did not understand #Blob
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject(Object)>>doesNotUnderstand: #Blob (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:4)
Object: nil error: did not understand #associationAt:ifAbsent:
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject(Object)>>doesNotUnderstand: #associationAt:ifAbsent: (SysExcept.st:1448)
DeferredVariableBinding>>resolvePathFrom: (DeferBinding.st:115)
DeferredVariableBinding>>value (DeferBinding.st:69)
UndefinedObject>>executeStatements (prog:4)
Object: nil error: did not understand #+
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject(Object)>>doesNotUnderstand: #+ (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:4)
stderr
./prog:4: expected expression