Thursday, August 30, 2012

Can you give one example of one way hash function?

MD5 is one of the most popular one-way hash functions in the world. The MD5 generates
a 128-bit hash value. The hash function generates a fixed-length hash value after a cleartext
message or file is passed through an encryption algorithm

What is RSA Encryption Algorithm?

The RSA is the first algorithm in the world that can be used for digital signatures as well as encryption

RSA creates a public key and a private key, called a keypair, using its key generation method, from a function of large prime numbers. Data encrypted with the public key can only be decrypted with its corresponding private key and vice versa


RSA is a very popular algorithm in software implementations and is used in operating systems. RSA is also used for key exchange, where symmetric keys are encrypted with the recipient’s public key and sent to the recipient, who can only decrypt the symmetric key with the corresponding private key.


The recommended key length for RSA is 1024 bits and above. Key lengths of 512 bits are not  considered secure for current-day implementations. The Java Cryptographic Extensions provide the capability to generate an RSA keypair and perform operations with the generated keys





Sunday, August 19, 2012

Dynamic web module version in Eclipse - New Dynamic web project?

How to increase Java Heap Size?

-Xms256m -Xmx512m

what are the Java EE version supported by tomcat 7?











create database , user and grant priviliges on MySQL?

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| portaldb           |
| test               |
+--------------------+
4 rows in set (0.01 sec)

mysql> create database schooldb;
Query OK, 1 row affected (0.01 sec)

mysql> create user suser@'localhost' identified by 'suser123';
Query OK, 0 rows affected (0.06 sec)

mysql> grant all on scholldb.* to suser@'localhost';
Query OK, 0 rows affected (0.02 sec)


Monday, August 13, 2012

what are the web service runtime environments available in IBM WAS Server?

Web services runtime environments

Three runtime environments are available in which Web services can run. Each environment supports different servers and standards.
The following runtime environments are supported for Web service generation: The IBM WebSphere JAX-WS runtime environment is the strategic Web services runtime supported by IBM. The IBM WebSphere JAX-RPC runtime is a legacy environment which is still supported, however new applications should use JAX-WS whenever possible. The Apache Axis 1.4 runtime is an open source runtime supported by the tools, however it is not recommended for use in a production environment.
 
 
IBM WebSphere JAX-RPC
WebSphere Application Server v5.0, v5.1, v6.0, v6.1.
Apache Axis 1.3
Apache Tomcat v4.0,.v4.1,.v5.0, v5.5. WebSphere Application Server v5.0, v5.1, v6.0, v6.1.

The following runtime/server configurations are supported:
IBM WebSphere JAX-WS
WebSphere Application Server v6.1.1.3 or later with the Feature Pack for Web Services installed, or WebSphere Application Server v7.0 or v8.0.
IBM WebSphere JAX-RPC
WebSphere Application Server v6.0, v6.1, v7.0, v8.0.
Apache Axis 1.4
Supported on all servers supporting servlet API 2.3 or higher. This includes but is not limited to: Apache Tomcat v4.x,.v5.x, v6.0. WebSphere Application Server v6.0, v6.1, v7.0.