<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Class Phalcon\\Crypt # Class **Phalcon\\Crypt** *implements*[*Phalcon\\CryptInterface*](#) Provides encryption facilities to phalcon applications ``` <pre class="calibre14">``` <?php $crypt = new \Phalcon\Crypt(); $key = 'le password'; $text = 'This is a secret text'; $encrypted = $crypt->encrypt($text, $key); echo $crypt->decrypt($encrypted, $key); ``` ``` ### Constants *integer***PADDING\_DEFAULT** *integer***PADDING\_ANSI\_X\_923** *integer***PADDING\_PKCS7** *integer***PADDING\_ISO\_10126** *integer***PADDING\_ISO\_IEC\_7816\_4** *integer***PADDING\_ZERO** *integer***PADDING\_SPACE** ### Methods public **setPadding** (*int* $scheme) Changes the padding scheme used public **setCipher** (*unknown* $cipher) Sets the cipher algorithm public **getCipher** () Returns the current cipher public **setMode** (*unknown* $mode) Sets the encrypt/decrypt mode public **getMode** () Returns the current encryption mode public **setKey** (*unknown* $key) Sets the encryption key public **getKey** () Returns the encryption key protected **\_cryptPadText** (*unknown* $text, *unknown* $mode, *unknown* $blockSize, *unknown* $paddingType) Pads texts before encryption protected **\_cryptUnpadText** (*unknown* $text, *unknown* $mode, *unknown* $blockSize, *unknown* $paddingType) If the function detects that the text was not padded, it will return it unmodified public **encrypt** (*unknown* $text, \[*unknown* $key\]) Encrypts a text ``` <pre class="calibre14">``` <?php $encrypted = $crypt->encrypt("Ultra-secret text", "encrypt password"); ``` ``` public **decrypt** (*unknown* $text, \[*unknown* $key\]) Decrypts an encrypted text ``` <pre class="calibre14">``` <?php echo $crypt->decrypt($encrypted, "decrypt password"); ``` ``` public **encryptBase64** (*unknown* $text, \[*unknown* $key\], \[*unknown* $safe\]) Encrypts a text returning the result as a base64 string public **decryptBase64** (*unknown* $text, \[*unknown* $key\], \[*unknown* $safe\]) Decrypt a text that is coded as a base64 string public **getAvailableCiphers** () Returns a list of available cyphers public **getAvailableModes** () Returns a list of available modes | - [索引](# "總目錄") - [下一頁](# "Class Phalcon\Crypt\Exception") | - [上一頁](# "Class Phalcon\Config\Exception") | - [API Indice](#) ?
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看