Created
March 26, 2020 02:19
-
-
Save hoyangtsai/07b123a47e00f1b086f09a0ba07d0796 to your computer and use it in GitHub Desktop.
base64Encode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Base64.Encoder; | |
String base64Encode = Base64.getEncoder().encodeToString(signHashParam.getBytes(Charset.forName("UTF-8"))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment