ZFFramework
 
Loading...
Searching...
No Matches
ZFIO_encrypt.h File Reference

encrypt ZFPathInfo More...

#include "ZFEncrypt.h"

Go to the source code of this file.

Functions

const zfstringZFPathType_encrypt ()
 see ZFPathInfo
 
ZFInput ZFInputForEncrypt (const ZFPathInfo &refPathInfo, const zfstring &encryptKey)
 util to create a file input callback
 
ZFOutput ZFOutputForEncrypt (const ZFPathInfo &refPathInfo, const zfstring &encryptKey)
 util to create a encrypt file output callback
 
ZFInput ZFInputForEncrypt (const ZFInput &refInput, const zfstring &encryptKey)
 util to create a file input callback
 
ZFOutput ZFOutputForEncrypt (const ZFOutput &refOutput, const zfstring &encryptKey)
 util to create a encrypt file output callback
 

Detailed Description

encrypt ZFPathInfo

Function Documentation

◆ ZFPathType_encrypt()

const zfstring & ZFPathType_encrypt ( )
extern

see ZFPathInfo

pathData is "refPathInfo|encryptKey", see ZFPathInfoChainDecode for more info

typical case:

encrypt:file:some/path/to/file|encryptKey
encrypt:res:some/path/to/file|encryptKey
encrypt:http:http://abc.com/some/path/to/file|encryptKey

◆ ZFInputForEncrypt()

ZFInput ZFInputForEncrypt ( const ZFPathInfo & refPathInfo,
const zfstring & encryptKey )
extern

util to create a file input callback

param:

  • (const ZFPathInfo &)refPathInfo: the encrypt file path to use, see ZFPathType_encrypt for more info
  • (const zfstring &)encryptKey : the encrypt key to use

◆ ZFOutputForEncrypt()

ZFOutput ZFOutputForEncrypt ( const ZFPathInfo & refPathInfo,
const zfstring & encryptKey )
extern

util to create a encrypt file output callback

param:

  • (const ZFPathInfo &)refPathInfo: the encrypt file path to use, see ZFPathType_encrypt for more info
  • (const zfstring &)encryptKey : the encrypt key to use