Skip to content

Commit

Permalink
close #1
Browse files Browse the repository at this point in the history
  • Loading branch information
mohemohe committed Jul 5, 2019
1 parent c5ac60f commit 0414f4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ func (this *MobilusSSO) decodeBase64(data string) ([]byte, error) {
}

func (this *MobilusSSO) encodeBase64(data []byte) string {
r := base64.URLEncoding.EncodeToString(data)
return strings.Replace(r, "=", "", -1)
return base64.URLEncoding.WithPadding(base64.NoPadding).EncodeToString(data)
}

func (this *MobilusSSO) paddingPKCS5(src []byte) []byte {
Expand Down

0 comments on commit 0414f4d

Please sign in to comment.