Encerrado

PHP Crypt Function translated into Objective C

Hello,

I need this PHP function :

function encrypt($s)

{

$r="";

for($i=0;$i<=strlen($s);$i++)

$r.=substr(str_shuffle(md5($this->akey)),($i % strlen(md5($this->akey))),1).$s[$i];

for($i=1;$i<=strlen($r);$i++)

$s[$i-1]=chr(ord($r[$i-1])+ord(substr(md5($this->akey),($i % strlen(md5($this->akey)))-1,1)));

return urlencode(base64_encode($s));

}

translated into Objective C :

+ (NSString*)encrypt:(NSString*)input {

......

Habilidades: Cocoa

Ver mais: c objective c, cocoa objective c, php function , ord, objective s, chr, c objective, php md5 encrypt, php encrypt, php objective encrypt, objective encrypt, objective cocoa input, objective php, objective php encrypt, urlencode, md5 php, input objective, substr, php md5, objective cocoa, base64_encode, ord php, encrypt php, input function php, php ord

Acerca do Empregador:
( 6 comentários ) Nyon, France

ID do Projeto: #3065125