src/Kunstmaan/UtilitiesBundle/Helper/Cipher/Cipher.php
public function encrypt($value, $raw_binary = false)
    {
        return Crypto::encryptWithPassword($value, $this->secret, $raw_binary);
    }
public function encrypt($value, $raw_binary = false)
    {
        return Crypto::encryptWithPassword($value, $this->secret, $raw_binary);
    }
public function encrypt ( $ value , $ raw_binary = false ) { return Crypto :: encryptWithPassword ( $ value , $ this -> secret , $ raw_binary ) ; }
Encrypt the given value to an unreadable string.

@param string $value
@param bool   $raw_binary

@return string

@throws \Defuse\Crypto\Exception\EnvironmentIsBrokenException
Encrypt the given value to an unreadable string .