RSA Encryption function in Swift 4 from Public Key string
问题 My ultimate goal is to create a JWE string, given a public key for iOS. To make things easier for myself, I've broken down my steps so most pressingly, I need to create an encrypted key using RSA encryption from a secret key and public key string. I've tried a lot of things found here in stack overflow and other places of the internet. For various reasons they just haven't worked out. I am being guided by some Objective C code: /* Device Data encryption - create JWE given DS publicKey */ +