Difference between PKCS1-padding/RSA encryption ios objc and java

前端 未结 3 1276
清歌不尽
清歌不尽 2021-02-01 16:01

I’m developing a application for ios and Android. I’m relatively new to crypto tasks and for the last 3 Days I keep banging my head against the wall because I’m not able to get

3条回答
  •  梦如初夏
    2021-02-01 16:47

    In Android or Java, the generated keys are in standard ASN.1 format which works fine in outer world(Client Side, Server side) but in iOS the generated keys(public, private) are in raw format, you have to convert it in proper ASN.1 format to make them workable.

提交回复
热议问题