@@ -43,10 +43,7 @@ class Crypt implements \Phalcon\CryptInterface
4343 protected $ _padding = 0 ;
4444
4545
46- protected $ _mode = "cbc " ;
47-
48-
49- protected $ _cipher = "rijndael-256 " ;
46+ protected $ _cipher = "aes-256-cfb " ;
5047
5148
5249 /**
@@ -72,21 +69,6 @@ public function setCipher($cipher) {}
7269 */
7370 public function getCipher () {}
7471
75- /**
76- * Sets the encrypt/decrypt mode
77- *
78- * @param string $mode
79- * @return Crypt
80- */
81- public function setMode ($ mode ) {}
82-
83- /**
84- * Returns the current encryption mode
85- *
86- * @return string
87- */
88- public function getMode () {}
89-
9072 /**
9173 * Sets the encryption key
9274 *
@@ -105,24 +87,22 @@ public function getKey() {}
10587 /**
10688 * Pads texts before encryption
10789 *
108- * @link http://www.di-mgt.com.au/cryptopad.html
90+ * @see http://www.di-mgt.com.au/cryptopad.html
10991 * @param string $text
11092 * @param string $mode
11193 * @param int $blockSize
11294 * @param int $paddingType
113- * @return string
11495 */
11596 protected function _cryptPadText ($ text , $ mode , $ blockSize , $ paddingType ) {}
11697
11798 /**
118- * Removes $paddingType padding from text
119- * If the method detects that the text was not padded, it will return it unmodified
99+ * Removes padding @a padding_type from @a text
100+ * If the function detects that the text was not padded, it will return it unmodified
120101 *
121102 * @param string $text Message to be unpadded
122103 * @param string $mode Encryption mode; unpadding is applied only in CBC or ECB mode
123104 * @param int $blockSize Cipher block size
124105 * @param int $paddingType Padding scheme
125- * @return string
126106 */
127107 protected function _cryptUnpadText ($ text , $ mode , $ blockSize , $ paddingType ) {}
128108
@@ -171,17 +151,10 @@ public function encryptBase64($text, $key = null, $safe = false) {}
171151 public function decryptBase64 ($ text , $ key = null , $ safe = false ) {}
172152
173153 /**
174- * Returns a list of available cyphers
154+ * Returns a list of available ciphers
175155 *
176156 * @return array
177157 */
178158 public function getAvailableCiphers () {}
179159
180- /**
181- * Returns a list of available modes
182- *
183- * @return array
184- */
185- public function getAvailableModes () {}
186-
187160}
0 commit comments