RNCryptor Sign with OpenSSL and private key

536 Views Asked by At

i use RNCryptor in my iOS project.

i have a openssl .pem (private key) file. and only that file.

i need to use that file to encript / sign a string.

does anybody know how the code could look like to do that?

1

There are 1 best solutions below

2
On BEST ANSWER

RNCryptor is a format and library for managing AES symmetrical encryption. What you're describing is very likely RSA asymmetrical encryption (public/private key encryption). They're not compatible.