Overview

Namespaces

  • Genetsis
    • core
      • activityid
      • user
  • None

Classes

  • AccessToken
  • ClientToken
  • Encryption
  • FileCache
  • LogConfig
  • LoginStatus
  • LoginStatusType
  • OAuth
  • OAuthConfig
  • OauthTemplate
  • RefreshToken
  • Request
  • StoredToken
  • Things
  • User

Interfaces

  • iTokenTypes

Exceptions

  • InvalidGrantException
  • Overview
  • Namespace
  • Class

Class Encryption

This class is used to wrap encryption functions.

Namespace: Genetsis\core
Package: Genetsis
Category: Helper
Version: 1.0
Located at core/Encryption.php
Methods summary
public
# __construct( string $client_secret )

Parameters

$client_secret
secret key to encrypt data.
public mixed
# encode( string $value )

Encodes a string using a secret key.

Encodes a string using a secret key.

Parameters

$value
string to be encoded.

Returns

mixed
The string encoded or FALSE.
public mixed
# safe_b64encode( $string )

Encodes a string using base64.

Encodes a string using base64.

Parameters

$string
string to be encoded.

Returns

mixed
The encoded string.
public mixed
# decode( string $value )

Decodes a string using a secret key.

Decodes a string using a secret key.

Parameters

$value
string to be decoded.

Returns

mixed
The string decoded or FALSE.
public The
# safe_b64decode( $string )

Decodes base64 encoded string.

Decodes base64 encoded string.

Parameters

$string
string to be decoded.

Returns

The
string decoded.
API documentation generated by ApiGen