⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.mcrypt-get-key-size.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Get the key size of the specified cipher</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mcrypt-get-iv-size.html">mcrypt_get_iv_size</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mcrypt-list-algorithms.html">mcrypt_list_algorithms</a></div> <div class="up"><a href="ref.mcrypt.html">Mcrypt Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.mcrypt-get-key-size" class="refentry"> <div class="refnamediv">  <h1 class="refname">mcrypt_get_key_size</h1>  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">mcrypt_get_key_size</span> &mdash; <span class="dc-title">Get the key size of the specified cipher</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">int</span> <span class="methodname"><b><b>mcrypt_get_key_size</b></b></span>    ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$cipher</tt></span>   )</div>  <div class="methodsynopsis dc-description">   <span class="type">int</span> <span class="methodname"><b><b>mcrypt_get_key_size</b></b></span>    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$cipher</tt></span>   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$module</tt></span>   )</div>  <p class="para rdfs-comment">   The first prototype is when linked against libmcrypt 2.2.x, the   second when linked against libmcrypt 2.4.x or 2.5.x.  </p>  <p class="para">   <b>mcrypt_get_key_size()</b> is used to get the size   of a key of the specified <i><tt class="parameter">cipher</tt></i> (in   combination with an encryption mode).  </p>  <p class="para">   This example shows how to use this function when linked against libmcrypt   2.4.x and 2.5.x. It is more useful to use the   <a href="function.mcrypt-enc-get-key-size.html" class="function">mcrypt_enc_get_key_size()</a> function as this uses the   resource returned by <a href="function.mcrypt-module-open.html" class="function">mcrypt_module_open()</a>.   <div class="example">    <p><b>Example #1 <a href="function.mcrypt-get-block-size.html" class="function">mcrypt_get_block_size()</a> example</b></p>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">mcrypt_get_key_size</span><span style="color: #007700">(</span><span style="color: #DD0000">'tripledes'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'ecb'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;<br /></span><br />Prints:<br />24</span></code></div>    </div>   </div>  </p>  <p class="para">   See also: <a href="function.mcrypt-get-block-size.html" class="function">mcrypt_get_block_size()</a>,   <b>mcrypt_end_get_key_size()</b> and   <a href="function.mcrypt-encrypt.html" class="function">mcrypt_encrypt()</a>.  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mcrypt-get-iv-size.html">mcrypt_get_iv_size</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mcrypt-list-algorithms.html">mcrypt_list_algorithms</a></div> <div class="up"><a href="ref.mcrypt.html">Mcrypt Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -