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?
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.