- Note: Since Puppet 4.8.0, the Binary data type can be used to produce base 64 encoded strings.
- See the `new()` function for the Binary and String types for documentation. Also see `binary_file()`
- function for reading a file with binary (non UTF-8) content.
+ Explicitly define encode/decode method: default, strict, urlsafe
+
+ $method = 'default'
+ $encodestring = base64('encode', 'thestring', $method)
+ $decodestring = base64('decode', 'dGhlc3RyaW5n', $method)
+
+ Encode a string as if it was binary