Function rstrtob64

  • convert a raw string to a Base64 encoded string.

    Parameters

    • s: string

      raw string

    Returns string

    Base64URL encoded string

    Example

    rstrtob64("aaa") -> "YWFh"