String uname = 'meta'; String upass = 'pass1'; Blob x = Blob.valueOf(uname + ':' + upass); String encoded = EncodingUtil.base64Encode(x); System.debug(encoded);
Standard input is empty
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)
./prog:4: expected expression