\Vigas\Application\ControllerEncryption

Trait Encryption.

Crypt and decrypt the streaming platform token sent after user authentication

Summary

Methods
Properties
Constants
cryptToken()
decryptToken()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

cryptToken()

cryptToken(string  $token) : string

Crypt a token

Parameters

string $token

Token to crypt

Returns

string —

The crypted token

decryptToken()

decryptToken(string  $encrypted_token) : string

Decrypt a token

Parameters

string $encrypted_token

The crypted token

Returns

string —

The decrypted token