We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
계정등록 요청시 CF-04020 오류가 발생합니다. 아래는 kotlin 암호화 코드 입니다.
`object RSAUtil { private val keyFactory = KeyFactory.getInstance("RSA")
fun encrypt(data: String, base64PublicKey: String): String { val cipher = Cipher.getInstance("RSA") cipher.init(Cipher.ENCRYPT_MODE, getPublicKey(base64PublicKey)) val encrypted = cipher.doFinal(data.toByteArray()) return Base64.getEncoder().encodeToString(encrypted) } private fun getPublicKey(base64PublicKey: String): PublicKey { val keySpec = X509EncodedKeySpec(Base64.getDecoder().decode(base64PublicKey.toByteArray())) return keyFactory.generatePublic(keySpec) }
}`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
계정등록 요청시
CF-04020 오류가 발생합니다.
아래는 kotlin 암호화 코드 입니다.
`object RSAUtil {
private val keyFactory = KeyFactory.getInstance("RSA")
}`
The text was updated successfully, but these errors were encountered: