VirtueMart  3.2.14.9808
Static Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
vmCrypt Class Reference

Static Public Member Functions

static encrypt ($string)
 
static decrypt ($string, $date=0)
 
static getEncryptSafepath ()
 
static getHumanToken ($length)
 
static getToken ($length=24, $pool=false)
 
static getFilteredBytes ($size=32, $filter= '"')
 
static crypto_rand_secure_cover ($range)
 
static crypto_rand_secure ($r)
 

Public Attributes

const ENCRYPT_SAFEPATH ="keys"
 

Static Private Member Functions

static _getKey ($date=0)
 
static _checkCreateKeyFile ($date)
 
static _createKeyFile ($keyPath, $size=32)
 
static createEncryptFolder ($folderName)
 

Member Function Documentation

static vmCrypt::_checkCreateKeyFile (   $date)
staticprivate
static vmCrypt::_createKeyFile (   $keyPath,
  $size = 32 
)
staticprivate
static vmCrypt::_getKey (   $date = 0)
staticprivate
static vmCrypt::createEncryptFolder (   $folderName)
staticprivate
static vmCrypt::crypto_rand_secure (   $r)
static

Returns random bytes of the desired length The function with "CAPICOM" is not tested and there for other who may need and fix it.

Author
Max Milbers
Parameters
$r
int$gen
Returns
string
static vmCrypt::crypto_rand_secure_cover (   $range)
static
static vmCrypt::decrypt (   $string,
  $date = 0 
)
static
static vmCrypt::encrypt (   $string)
static
static vmCrypt::getEncryptSafepath ( )
static
static vmCrypt::getFilteredBytes (   $size = 32,
  $filter = '"' 
)
static
static vmCrypt::getHumanToken (   $length)
static

Creates a token for inputs by human, some chars are removed to reduce mistyping, All chars are upper case, 0 and O are omitted

Author
Max Milbers
Parameters
$length
Returns
string
static vmCrypt::getToken (   $length = 24,
  $pool = false 
)
static

Creates a token

Author
Max Milbers
Parameters
$lengthOnly keys of sizes 16, 24 or 32 are supported
$poolpool to chose from
Returns
string

Member Data Documentation

const vmCrypt::ENCRYPT_SAFEPATH ="keys"

The documentation for this class was generated from the following file: