Post

Replies

Boosts

Views

Activity

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.9k
Feb ’22
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
201
Feb ’25
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
393
Feb ’25
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() ?
Replies
2
Boosts
0
Views
1.9k
Activity
Feb ’22
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
Replies
0
Boosts
0
Views
201
Activity
Feb ’25
Issue with App Store Version Update Delay
Hi Team, We have released version 1.16 of our application. However, even after 3 hours of it being live, the Apple API below still returns the old version: http://itunes.apple.com/in/lookup?bundleId=\(identifier) As a result, users are seeing the "update application" screen. Please look into this issue and advise on how to resolve it. Thanks,
Replies
0
Boosts
0
Views
251
Activity
Feb ’25
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,
Replies
3
Boosts
0
Views
393
Activity
Feb ’25