Our iOS developer generated a private / public key using the following documentation. The other details includes using RSA 2048 and padding is PKCS1.
https://developer.apple.com/documentation/security/1395339-seckeygeneratepair?language=objc
I've mostly encountered certificate based encryption using certficates from windows store I I can't seem to fit their public key into the examples I've previously encountered. Has anyone tried something like this?
- The app generates a public private key pair and provides me the public key.
- On the server I encrypt a message with the public key.
- On the app the message is decrypted using the private key.
Here are some references that I've read but none of them seem to fit this.
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.rsacryptoserviceprovider?view=netframework-4.7.2 https://codereview.stackexchange.com/questions/92761/very-simple-asymmetric-rsa-encryption-in-c