Post

Replies

Boosts

Views

Activity

Request to Change Username on Developer Forum
Dear [Support Team/Moderator], I hope you are doing well. I would like to request a username change for my account on the AbhishekOpl. Unfortunately, I couldn’t find an option to update it in the profile settings. Here are my details: Current Username: AbhishekOpl Desired Username: ManishOpl If a username change is not possible, please let me know any alternative solutions. I appreciate your assistance and look forward to your response. Best regards,
3
0
67
4d
Permission issue for US region
I hope you’re doing well. We would like to request app store testing for our application in the Indian region, as the application’s API is only supported within India. Please ensure that all functionalities, including authentication, API responses, and region-specific features, are working as expected. Let us know if you need any additional details or encounter any issues during testing. Thanks
0
0
107
1w
Can I use private key to encrypt data using SecKeyCreateEncryptedData()
I want to perform RSA encryption&Decryption using SecKeyCreateEncryptedData() Method allows public key as SecKey, My back end Java code has been set as encryption using private key & decryption using public key. Here is a java code... @SuppressLint("NewApi") public static String encryptSecretKeyByPrivateKey(String data, String privatekeyPath) throws NoSuchAlgorithmException, InvalidKeySpecException, InvalidKeyException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException { byte[] plaintext = data.getBytes(); PrivateKey privateKey = getPrivatekey(privatekeyPath); Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); cipher.init(Cipher.ENCRYPT_MODE, privateKey); byte[] encryptedByte = cipher.doFinal(plaintext); return Base64.getEncoder().encodeToString(encryptedByte); } public static PrivateKey getPrivatekey(String key) throws NoSuchAlgorithmException, InvalidKeySpecException { PrivateKey privateKey = null; KeyFactory keyFactory = null; byte[] encoded = DatatypeConverter.parseBase64Binary(key); PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(encoded); keyFactory = KeyFactory.getInstance("RSA"); privateKey = keyFactory.generatePrivate(keySpec); return privateKey; } Can I achieve the same in swift with the help of SecKeyEncrypt() or SecKeyCreateEncryptedData() ?
2
0
1.7k
Feb ’22