Loading Please wait...

Zigmoyd Encryption System.

This file is part of Zigmoyd PHP Framework. More...

Data Structures

class  zCrypt
class  zCryptDrv_both
 multi adapter for zigmoyd Encryption. More...
class  zCryptDrv_mcrypt
 MCrypt adapter for Zigmoyd Encryption System. More...
class  zCryptObj
 The main class that holds all encryption decryption methods But not needed to use it as an object cause equivalent objects are aviliable for all methods of this class. More...
class  zCryptDrv_xor_intermediate
 XOR adapter (Intermediate) for Zigmoyd Encryption System. More...
class  zCryptDrv_xor
 XOR adapter for Zigmoyd Encryption System. More...

Variables

 $drv = parse_ini_file(ZIGROOT.DRS.Z_DIR_PROJECTS.DRS.Z_PROJECT_DIR.DRS.ZIGSETTINGSDIR.DRS.'sec.ini.php', false)
if(!function_exists('array_walk_recursive')) if (!defined('Z__php_str_md5')) define('Z__php_str_md5'

Detailed Description

This file is part of Zigmoyd PHP Framework.

front End of Zigmoyd Encryption is the zCrypt Class. in Zigmoyd you can do encryption in three different ways. using XOR adapter using mCrypt useing both XOR and mCrypt one after another. if you have mcrypt available on your server its not recomended for you to use XOR adapter.
You need to adjust your project's configuration files for encryption to work.
in etc/sec.ini.php you need to set the encryption driver you can use driver=z, driver=m or driver=b z Means Zigmoyd's XOR encryption, m means mCrypt and b means both one after another.
while using XOR adapter you can modify zcpt.ini.php File.

	[zcpt]
		key = "mySecretKey";Set the encryption Key e.g. secret Password
		ZCRYPT_DEFAULT_MODE = "bin";Set the encryption mode binary by default.you can make it dec (decimal) too
	

When using mcrypt adapter you can configure it through mcpt.ini.php configuration file.
	[mcrypt]
		SEC_MCRYPT_ALGO = blowfish-compat;Set the encryption algorithm
		SEC_MCRYPT_MODE = cbc;Set the encryption Mode
		mkey = "mySecretKey";Set encryption password
		SEC_MCRYPT_IV_SRC = 0;mcrypt IV (Initialization vector) Source
		;0 for MCRYPT_DEV_RANDOM
		;1 for MCRYPT_DEV_URANDOM
		;2 for MCRYPT_RAND
		SEC_MCRYPT_TIMEOUT = s;s for second
		iv = "PeiYyjHqAyk="
		;You can use a static IV(you can use dynamic IV too). e.g. an IV is statically build which you can use to encrypt and decrypt.
	

if you are using both you need to configure both of the configuration files.

Copyright (C) 2008 Neel Basu (Sunanda Bose)

Zigmoyd PHP Framework is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Zigmoyd PHP Framework is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with Zigmoyd PHP Framework. If not, see <http://www.gnu.org/licenses/>.

For internal use only.

Copyright (C) 2008 Neel Basu (Sunanda Bose)

Zigmoyd PHP Framework is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Zigmoyd PHP Framework is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with Zigmoyd PHP Framework. If not, see <http://www.gnu.org/licenses/>.


Variable Documentation

$drv = parse_ini_file(ZIGROOT.DRS.Z_DIR_PROJECTS.DRS.Z_PROJECT_DIR.DRS.ZIGSETTINGSDIR.DRS.'sec.ini.php', false)

Definition at line 26 of file sec.php.

if(!defined('Z__php_str_sha1')) define('Z__php_str_sha1'

Definition at line 59 of file sec_func.php.


Generated on Mon Oct 27 23:52:11 2008 for zigmoyd.kdevelop by doxygen 1.5.6