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

📄 digestutils.html

📁 JSP建站必须文件commons-codec-1.3.zip
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="DigestUtils()"><!-- --></A><H3>
DigestUtils</H3>
<PRE>
public <B>DigestUtils</B>()</PRE>
<DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getDigest(java.lang.String)"><!-- --></A><H3>
getDigest</H3>
<PRE>
static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/security/MessageDigest.html" title="class or interface in java.security">MessageDigest</A> <B>getDigest</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;algorithm)</PRE>
<DL>
<DD>Returns a MessageDigest for the given <code>algorithm</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>algorithm</CODE> - The MessageDigest algorithm name.<DT><B>Returns:</B><DD>An MD5 digest instance.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/RuntimeException.html" title="class or interface in java.lang">RuntimeException</A></CODE> - when a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security"><CODE>NoSuchAlgorithmException</CODE></A> is caught,</DL>
</DD>
</DL>
<HR>

<A NAME="getMd5Digest()"><!-- --></A><H3>
getMd5Digest</H3>
<PRE>
private static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/security/MessageDigest.html" title="class or interface in java.security">MessageDigest</A> <B>getMd5Digest</B>()</PRE>
<DL>
<DD>Returns an MD5 MessageDigest.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>An MD5 digest instance.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/RuntimeException.html" title="class or interface in java.lang">RuntimeException</A></CODE> - when a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security"><CODE>NoSuchAlgorithmException</CODE></A> is caught,</DL>
</DD>
</DL>
<HR>

<A NAME="getShaDigest()"><!-- --></A><H3>
getShaDigest</H3>
<PRE>
private static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/security/MessageDigest.html" title="class or interface in java.security">MessageDigest</A> <B>getShaDigest</B>()</PRE>
<DL>
<DD>Returns an SHA digest.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>An SHA digest instance.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/RuntimeException.html" title="class or interface in java.lang">RuntimeException</A></CODE> - when a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security"><CODE>NoSuchAlgorithmException</CODE></A> is caught,</DL>
</DD>
</DL>
<HR>

<A NAME="md5(byte[])"><!-- --></A><H3>
md5</H3>
<PRE>
public static byte[] <B>md5</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD>Calculates the MD5 digest and returns the value as a 16 element  <code>byte[]</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Data to digest<DT><B>Returns:</B><DD>MD5 digest</DL>
</DD>
</DL>
<HR>

<A NAME="md5(java.lang.String)"><!-- --></A><H3>
md5</H3>
<PRE>
public static byte[] <B>md5</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;data)</PRE>
<DL>
<DD>Calculates the MD5 digest and returns the value as a 16 element  <code>byte[]</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Data to digest<DT><B>Returns:</B><DD>MD5 digest</DL>
</DD>
</DL>
<HR>

<A NAME="md5Hex(byte[])"><!-- --></A><H3>
md5Hex</H3>
<PRE>
public static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>md5Hex</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD>Calculates the MD5 digest and returns the value as a 32 character  hex string.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Data to digest<DT><B>Returns:</B><DD>MD5 digest as a hex string</DL>
</DD>
</DL>
<HR>

<A NAME="md5Hex(java.lang.String)"><!-- --></A><H3>
md5Hex</H3>
<PRE>
public static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>md5Hex</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;data)</PRE>
<DL>
<DD>Calculates the MD5 digest and returns the value as a 32 character  hex string.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Data to digest<DT><B>Returns:</B><DD>MD5 digest as a hex string</DL>
</DD>
</DL>
<HR>

<A NAME="sha(byte[])"><!-- --></A><H3>
sha</H3>
<PRE>
public static byte[] <B>sha</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD>Calculates the SHA digest and returns the value as a  <code>byte[]</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Data to digest<DT><B>Returns:</B><DD>SHA digest</DL>
</DD>
</DL>
<HR>

<A NAME="sha(java.lang.String)"><!-- --></A><H3>
sha</H3>
<PRE>
public static byte[] <B>sha</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;data)</PRE>
<DL>
<DD>Calculates the SHA digest and returns the value as a  <code>byte[]</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Data to digest<DT><B>Returns:</B><DD>SHA digest</DL>
</DD>
</DL>
<HR>

<A NAME="shaHex(byte[])"><!-- --></A><H3>
shaHex</H3>
<PRE>
public static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>shaHex</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD>Calculates the SHA digest and returns the value as a hex string.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Data to digest<DT><B>Returns:</B><DD>SHA digest as a hex string</DL>
</DD>
</DL>
<HR>

<A NAME="shaHex(java.lang.String)"><!-- --></A><H3>
shaHex</H3>
<PRE>
public static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>shaHex</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;data)</PRE>
<DL>
<DD>Calculates the SHA digest and returns the value as a hex string.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Data to digest<DT><B>Returns:</B><DD>SHA digest as a hex string</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DigestUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="DigestUtils.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
commons-codec version 1.3 - Copyright &copy; 2002-2004 - Apache Software Foundation
</BODY>
</HTML>

⌨️ 快捷键说明

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