swift-rsautils icon indicating copy to clipboard operation
swift-rsautils copied to clipboard

The func which encrypt with RSA PrivateKey is not working.

Open anonymity-du opened this issue 5 years ago • 1 comments

You should replace "SecKeyEncrypt" with "SecKeyRawSign"

anonymity-du avatar Dec 09 '19 07:12 anonymity-du

Hi @anonymity-du,

That function is there just for completeness. In practice we do not encrypt with private key because it not secure.

Cheers, Thanh Nguyen

btnguyen2k avatar Dec 09 '19 07:12 btnguyen2k