CryptoBeans Bean Suite Version 1.0 is a set of beans, which perform various cryptographic transformations (symmetric encryption, password-based encryption and hash calculation).  CryptoBeans Wiring Diagram

To use the beans from the suite:

  • specify the names of the source file and the transformed file 
  • call the triggerAction() method. 

It is also possible to customize the cryptographic transformation type and parameters as well as cryptographic service provider, which performs the transformation. You may monitor the progress of the transformation using the transformedPercent property. If any input/output error occurs during the transformation, the IOError event is fired. If some other error occurs, the cryptoTransformationError event is fired.

Encryptor Encrypts and decrypts input data by means of a symmetric cipher (DES, DESede and any other symmetric cipher, which is supported by the user's cryptographic service provider and selected in the bean's properties). Only the owners of the Secret Key can decrypt the data transformed by this bean.
HashCalculator Computes the hash function value of its input data. Any hash function takes an arbitrary-sized array of data as input, and generates a fixed-sized output called hash (digest). The message digests can be used to identify the data. The data integrity may be checked by comparing the hash value of the current message with the original value.
PBEncryptor Encrypts and decrypts data by means of the password-based encryption algorithms (PBEWithMD5AndDES and any other algorithm, which is supported by the user's cryptographic service provider). Any password-based encryption algorithm derives the encryption key from the password. Only the users who know the correct password can decrypt the data.
MessageWrapper Provides both convenient password-based encryption scheme and data integrity check. Reads the source data and the password and wraps it into the output message of a special format.
MessageUnwrapper Unwraps the message with the user password. It checks the password entered by the user and fires the incorrectPassword event if the password is wrong. It also provides data integrity check by means of recalculating the message hash function value. If this hash value differs from the value in the wrapped file, the contentsCorrupted event is fired. However, this event will not be fired if you change some parts of the wrapped message other than the encrypted message and its hash value.
Copyright © 2001 IBM Corp. All rights reserved. Java, JavaBeans, Swing and 100% Pure Java are trademarks of Sun Microsystems, Inc. All other trademarks are the property of their respective owners.