include/utils/encryption_utils.php

Show: inherited
    Table of Contents

    Functions

    functionblowfishDecode( STRING $key, STRING $encoded ) : string

    Uses blowfish to decode data assumes data has been base64 encoded with the iv stored as part of the data

    Parameters
    Name Type Description
    $key STRING

    key - key to base decoding off of

    $encoded STRING

    encoded base64 encoded blowfish encrypted data

    Returns
    Type Description
    string
    functionblowfishEncode( STRING $key, STRING $data ) : string

    Uses blowfish to encrypt data and base 64 encodes it. It stores the iv as part of the data

    Parameters
    Name Type Description
    $key STRING

    key - key to base encoding off of

    $data STRING

    data - string to be encrypted and encoded

    Returns
    Type Description
    string
    functionblowfishGetKey( string $type ) : string

    retrives the system's private key; will build one if not found, but anything encrypted before is gone...

    Parameters
    Name Type Description
    $type string

    type

    Returns
    Type Description
    string key
    functionsugarDecode(  $key,  $encoded ) : void

    Parameters
    Name Type Description
    $key
    $encoded
    functionsugarEncode(  $key,  $data ) : void

    Parameters
    Name Type Description
    $key
    $data
    Documentation was generated by DocBlox 0.18.1.