Login +

Documentation

SLS_Security::encrypt

Since SillySmart 1.0

Description

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

Parameters

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

Return

string $encrypted
the text encrypted

Exemples

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

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.