Crypt::decrypt PHP Method

decrypt() public static method

Decrypt the given value.
public static decrypt ( string $payload ) : string
$payload string
return string
        public static function decrypt($payload)
        {
            return \Illuminate\Encryption\Encrypter::decrypt($payload);
        }

Usage Example

コード例 #1
0
 /**
  * Tests Crypt->decrypt()
  */
 public function testDecrypt()
 {
     // Encrypt the data
     $encrypted = $this->crypt->encrypt(self::DATA);
     // Decrypt the data
     $decrypted = $this->crypt->decrypt($encrypted);
     $this->assertTrue($decrypted == self::DATA, 'Testing data decryption');
     unset($encrypted, $decrypted);
 }
All Usage Examples Of Crypt::decrypt