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

ZFPathInfo impl as encrypted file More...

#include "ZFEncrypt.h"

Go to the source code of this file.

Functions

const zfstringZFPathType_encrypt ()
 see ZFPathInfo
 
ZFLIB_ZFAlgorithm ZFInput ZFInputForEncrypt (const ZFPathInfo &refPathInfo, const zfchar *encryptKey, ZFFileOpenOptionFlags flags=(v_ZFFileOpenOption::e_Read))
 util to create a file input callback
 
ZFLIB_ZFAlgorithm ZFOutput ZFOutputForEncrypt (const ZFPathInfo &refPathInfo, const zfchar *encryptKey, ZFFileOpenOptionFlags flags=(v_ZFFileOpenOption::e_Create))
 util to create a encrypt file output callback
 

Detailed Description

ZFPathInfo impl as encrypted file

Function Documentation

◆ ZFPathType_encrypt()

const zfstring & ZFPathType_encrypt ( )
inline

see ZFPathInfo

pathData is "encryptKey|refPathInfo"

the refPathInfo is a chained ZFPathInfo, a typical case:

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

see ZFPathInfoChainDecode for more info

◆ ZFInputForEncrypt()

ZFLIB_ZFAlgorithm ZFInput ZFInputForEncrypt ( const ZFPathInfo & refPathInfo,
const zfchar * encryptKey,
ZFFileOpenOptionFlags flags = (v_ZFFileOpenOption::e_Read) )
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 zfchar *)encryptKey: the encrypt key

◆ ZFOutputForEncrypt()

ZFLIB_ZFAlgorithm ZFOutput ZFOutputForEncrypt ( const ZFPathInfo & refPathInfo,
const zfchar * encryptKey,
ZFFileOpenOptionFlags flags = (v_ZFFileOpenOption::e_Create) )
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 zfchar *)encryptKey: the encrypt key