Encodes the provided string in Base64.

  • Parameters

    • subject: string

      The string to encode.

    Returns string

    The subject string encoded in Base64.