Login +

Documentation

SLS_Security::decrypt

Since SillySmart 1.0

Description

Symmetric encryption
static string decrypt ( string $text, [ string $key ] );

Parameters

  • string $text
    the text to encrypt
  • string $key
    the private key (default Project Private key)

Return

string $decrypted
the text decrypted

Exemples

  •  $uncrypted = SLS_Security::getInstance()->decrypt("VyUA[..]UgCCA=");
     var_dump($uncrypted);
     // will produce : "sillysmart"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.