Java Doc for SHA1.java in  » Scripting » jython » org » python » modules » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » jython » org.python.modules 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.python.modules.SHA1

SHA1
final public class SHA1 (Code)
This class implements the SHA-1 message digest algorithm.

References:

  1. Bruce Schneier, "Section 18.7 Secure Hash Algorithm (SHA)," Applied Cryptography, 2nd edition, John Wiley & Sons, 1996

  2. NIST FIPS PUB 180-1, "Secure Hash Standard", U.S. Department of Commerce, May 1993.
    http://www.itl.nist.gov/div897/pubs/fip180-1.htm

Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

Revision: 1.7
author:
   Systemics Ltd
author:
   David Hopwood
since:
   Cryptix 2.2.2



Field Summary
public static  PyString__doc__copy
    
public static  PyString__doc__digest
    
public static  PyString__doc__hexdigest
    
public static  PyString__doc__update
    
public  intdigest_size
    

Constructor Summary
public  SHA1()
     Constructs a SHA-1 message digest.

Method Summary
public  SHA1copy()
     Add an array of bytes to the digest.
public  Stringdigest()
    
protected  byte[]engineDigest()
     SPI: Calculates the final digest.
protected  byte[]engineDigest(byte[] in, int length)
     Returns the digest of the data added and resets the digest.
protected  voidengineReset()
     Initializes (resets) the message digest.
protected  voidengineTransform(byte[] in)
     Adds data to the message digest.
protected  voidengineUpdate(byte b)
     SPI: Updates the message digest with a byte of new data.
protected  voidengineUpdate(byte[] data, int offset, int length)
     SPI: Updates the message digest with new data.
public  Stringhexdigest()
     Print out the digest in a form that can be easily compared to the test vectors.
public  StringtoString()
    
public synchronized  voidupdate(byte input)
     Add an array of bytes to the digest.

Field Detail
__doc__copy
public static PyString __doc__copy(Code)



__doc__digest
public static PyString __doc__digest(Code)



__doc__hexdigest
public static PyString __doc__hexdigest(Code)



__doc__update
public static PyString __doc__update(Code)



digest_size
public int digest_size(Code)




Constructor Detail
SHA1
public SHA1()(Code)
Constructs a SHA-1 message digest.




Method Detail
copy
public SHA1 copy()(Code)
Add an array of bytes to the digest.



digest
public String digest()(Code)



engineDigest
protected byte[] engineDigest()(Code)
SPI: Calculates the final digest. BlockMessageDigest subclasses should not usually override this method. the digest as a byte array.



engineDigest
protected byte[] engineDigest(byte[] in, int length)(Code)
Returns the digest of the data added and resets the digest. the digest of all the data added to the message digestas a byte array.



engineReset
protected void engineReset()(Code)
Initializes (resets) the message digest.



engineTransform
protected void engineTransform(byte[] in)(Code)
Adds data to the message digest.
Parameters:
  data - The data to be added.
Parameters:
  offset - The start of the data in the array.
Parameters:
  length - The amount of data to add.



engineUpdate
protected void engineUpdate(byte b)(Code)
SPI: Updates the message digest with a byte of new data.
Parameters:
  b - the byte to be added.



engineUpdate
protected void engineUpdate(byte[] data, int offset, int length)(Code)
SPI: Updates the message digest with new data.
Parameters:
  data - the data to be added.
Parameters:
  offset - the start of the data in the array.
Parameters:
  length - the number of bytes of data to add.



hexdigest
public String hexdigest()(Code)
Print out the digest in a form that can be easily compared to the test vectors.



toString
public String toString()(Code)



update
public synchronized void update(byte input)(Code)
Add an array of bytes to the digest.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.