How can I do this same encrypt/decrypt PHP function on iOS with Objective-C?

前端 未结 5 590
清酒与你
清酒与你 2021-02-06 15:50

I have a function in PHP that encrypts and decrypts strings:

function encrypt_decrypt($action, $string) 
{
   $output = false;
   $key = \'mykeyhereblah\';
   $i         


        
5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-06 16:39

    I use http://searchcode.com/codesearch/view/14846108 for MD5 encryption... and prove me wrong but it suppose MD5 is just one way encryption, it can't be decrypted just like that. It can be decrypted with brute force or with a large database of encrypted strings. That's why it's suppose to be safe.

提交回复
热议问题