Posts Tagged Eclipse

How to encrypt/decrypt files in Java with AES in CBC mode using Bouncy Castle API and NetBeans or Eclipse

The Bouncy Castle Crypto API for Java provides a lightweight cryptography API that is an alternative to the standard Sun Java Cryptographic Architecture (JCA) and Java Cryptographic Extension (JCE) bundled in the JDK. The API can be used in J2ME MIDlet applications or in other Java applications up to the 1.7 platform.

The Bouncy Castle lightweight cryptographic API can be used as a:

  • Cryptographic Service Provider (CSP) for the JCA;
  • external library.

In this post we will see how to use the the Bouncy Castle lightweight cryptographic API in both situations, as the syntax differs from one approach to the other. To highlight the differences, the advantages and the disadvantages of the two solutions, the Bouncy Castle API is used in a console Java application to encrypt/decrypt files with the AES (Advanced Encryption Standard) or Rijndael algorithm in Cipher Block Chaining (CBC) mode.

Read the rest of this entry »

, , , , ,

3 Comments

Tutorial Java 6 – #2.2 How to generate JavaDoc in Eclipse or NetBeans

Java source code documentation is represented by JavaDoc projects, which are a collection of HTML pages describing the classes and methods in the code. To generate Javadoc documentation you need a tool from the JDK, javadoc.exe , and comments in the source code written according to strict rules (  ). Because it is more efficient to develop Java projects in a IDE (Integrated Development Environment) as NetBeans or Eclipse , JavaDoc documentation can be automatically generated in all of these development environments.

Read the rest of this entry »

, ,

1 Comment

Tutorial Java 6 – #2.2 Cum sa generezi JavaDoc in Eclipse sau NetBeans

Documentarea codului sursa Java se face prin proiecte JavaDoc, ce reprezinta o colectie de pagini HTML in care sunt descrise clasele si metodele din cod. Pentru a genera documentatia JavaDoc se foloseste un instrument din JDK, javadoc.exe, si comentariile din cod se scriu dupa reguli stricte (Tutorial Java 6 – #2.1 Cum sa definesti comentarii JavaDoc). Deoarece este mai eficient sa dezvolti proiecte Java complexe intr-un IDE (Integrated Development Environment) ca NetBeans sau Eclipse, documentatia JavaDoc poate fi generata automat tot din aceste medii.

Read the rest of this entry »

, ,

2 Comments