RSAUtils END KEY

This commit is contained in:
MaxKey
2022-02-21 11:22:59 +08:00
parent 6caa74b0f9
commit d53cc127e3

View File

@@ -182,7 +182,7 @@ public final class RSAUtils {
new StringBuffer("");
base64String.append("-----BEGIN PUBLIC KEY-----").append("\n");
base64String.append(getBase64PEM(encoded));
base64String.append("-----END PUBLIC KEY-------").append("\n");
base64String.append("-----END PUBLIC KEY-----").append("\n");
return base64String.toString();
}
@@ -191,7 +191,7 @@ public final class RSAUtils {
new StringBuffer("");
base64String.append("-----BEGIN RSA PRIVATE KEY-----").append("\n");
base64String.append(getBase64PEM(encoded));
base64String.append("-----END RSA PRIVATE KEY-------").append("\n");
base64String.append("-----END RSA PRIVATE KEY-----").append("\n");
return base64String.toString();
}