Base64 encoding and decoding for binary data and strings.
- Copyright:
- Copyright (C) 1999 Masanao Izumo 
 
- Copyright (C) 1999 Masanao Izumo 
- Source:
Methods
- 
    <static> decode(str, encoding) → {string|ByteArray}
- 
    
    
    Decodes a Base64 encoded string to a string or byte array. Parameters:Name Type Argument Description strString the Base64 encoded string encodingString <optional> 
 the encoding to use for the return value. Defaults to 'utf8'. Use 'raw' to get a ByteArray instead of a string. Other valid values are 'utf8', 'ascii' and 'ucs2'. - Source:
 Returns:The decoded string or ByteArray - Type
- string | ByteArray
 Examplestrings = require("ink-strings"); strings.decode( "XDc3L1tdMDk4NzQzMmZnZnN1amRuZm9za3N1d20qJl4lJCNA" ); -> '\\77/[]0987432fgfsujdnfosksuwm*&^%$#@'
- 
    <static> encode(str, encoding) → {string}
- 
    
    
    Encode a string or binary to a Base64 encoded string Parameters:Name Type Argument Description strString | Binary A string or binary object to encode encodingString <optional> 
 Encoding to use if first argument is a string. Defaults to 'utf8'. Valid values are 'utf8', 'ascii' and 'ucs2'. - Source:
 Returns:The Base64 encoded string - Type
- string
 Examplestrings = require("ink-strings"); strings.encode( "\\77/[]0987432fgfsujdnfosksuwm*&^%$#@" ) ->'XDc3L1tdMDk4NzQzMmZnZnN1amRuZm9za3N1d20qJl4lJCNA'