Encrypt Library - RoverWire/codeigniter-utilities GitHub Wiki

Official Codeginiter documentation encrypt library reference

Encode

Trigger: cicryptenc

Results: $this->encrypt->encode()

Decode

Trigger: cicryptdec

Results: $this->encrypt->decode()

Set Cipher

Trigger: cicryptcipher

Results: $this->encrypt->set_cipher(MCRYPT_RIJNDAEL_256)

the MCRYPT_RIJNDAEL_256 cipher is the default option used in codeigniter, and is suggested by the snippet, but you can use other as you need.

Set Mode

Trigger: cicryptmode

Results: $this->encrypt->set_mode(MCRYPT_MODE_CBC)

the MCRYPT_MODE_CBC mode is default used and suggested, but you can use another one.

⚠️ **GitHub.com Fallback** ⚠️