feature #2500: option to encode credentials in sunstone

(cherry picked from commit 8b71eb6a2973ef9bd8685c8fe6619f4cb878166d)