If you install PGP command line version and also if you had .pgp file and it's key in a .asc file.
then you can decrypt the file using the following command.
pgp --import key.asc
pgp --decrypt file.pgp
for the GPG command line it's in the following way.
gpg --import key.asc
gpg --decrypt file.pgp
How Confidentiality generate from PGP encryption
Here message or file is encrypted using a symmetric encryption algorithm, which requires a symmetric key. Each symmetric key is used only once and is also called a session key. The session key is protected by encrypting it with the receiver's public key thus ensuring that only the receiver can decrypt the session key. The encrypted message along with the encrypted session key is sent to the recipient.
Thursday, November 25, 2010
Thursday, November 4, 2010
What is AS 400
AS 400 is a midrange server designed for small businesses and departments in large enterprises and now redesigned so that it will work well in distributed networks with Web applications. The AS/400 uses the PowerPC microprocessor with its reduced instruction set computer technology. Its operating system is called the OS/400. With multi-terabytes of disk storage and a Java virtual memory closely tied into the operating system, IBM hopes to make the AS/400 a kind of versatile all-purpose server that can replace PC servers and Web servers in the world's businesses, competing with both Wintel and Unix servers, while giving its present enormous customer base an immediate leap into the Internet.
Wednesday, November 3, 2010
Pretty Good Privacy (PGP)
Pretty Good Privacy (PGP) is a data encryption and decryption computer program that provides cryptographic privacy and authentication for data communication.It increase the security of e-mail communications.It was created by Philip Zimmermann in 1991.
PGP is based on the public-key method, which uses two keys -- one is a public key that you disseminate to anyone from whom you want to receive a message. The other is a private key that you use to decrypt messages that you receive.
Following step help to create public key and after export that key we can send it to other end.(communication other party)
Step 1: -
pgp –version
check the PGP version
Step 2:-
pgp –h
get the pgp help
Step 2:-
pgp --gen-key "Joe User" --key-type RSA --bits 2048 --passphrase "my passphrase"
create pgp public key
Here Joe User is the key word we are used.
Key-type -> RSA should be the correct one to select two way communication. The default is DH/DSS and should be fine for new users.
Bits ->
1024 or 2048 is fine. 2048 or greater will be much better to used.
Below 1024 is not good. Then crackers can easily guess the public key.
Passphrase -> This is one of the most important steps (next to backing
up your keyring). If someone were to get a hold of your secret key, and figure
out your passphrase then there is NOTHING that you can do to prevent that
person from opening your encrypted files or reading your mail.
The passphrase should be a good length, and include upper and lower case
characters, number and symbols. A good choice is to make a sentence and
add punctuation and numbers. Of course, you should not write it down
anywhere where others may find it. If your passphrase is weak, then it can be
hacked.
After execute the above command ,
PGP Command line will now generate your keypair. You should see your Key ID (i.e. 0X12345678), and a message that the key was successfully generated.
Step 3:-
pgp --list-keys
list the public keys in the PGP server
Step 4:-
pgp --export 0x12345678
Export The Public Key
Now Public key creation process is over.
After that you can send the export public key to customer
After sending the customer your public key , we have to collect customer’s public key
First we need to import that public key.
pgp --import "PGP Joe.asc"
PGP Joe.asc is the public key of the customer
For this way we can use PGP encryption process.
PGP is based on the public-key method, which uses two keys -- one is a public key that you disseminate to anyone from whom you want to receive a message. The other is a private key that you use to decrypt messages that you receive.
Following step help to create public key and after export that key we can send it to other end.(communication other party)
Step 1: -
pgp –version
check the PGP version
Step 2:-
pgp –h
get the pgp help
Step 2:-
pgp --gen-key "Joe User" --key-type RSA --bits 2048 --passphrase "my passphrase"
create pgp public key
Here Joe User is the key word we are used.
Key-type -> RSA should be the correct one to select two way communication. The default is DH/DSS and should be fine for new users.
Bits ->
1024 or 2048 is fine. 2048 or greater will be much better to used.
Below 1024 is not good. Then crackers can easily guess the public key.
Passphrase -> This is one of the most important steps (next to backing
up your keyring). If someone were to get a hold of your secret key, and figure
out your passphrase then there is NOTHING that you can do to prevent that
person from opening your encrypted files or reading your mail.
The passphrase should be a good length, and include upper and lower case
characters, number and symbols. A good choice is to make a sentence and
add punctuation and numbers. Of course, you should not write it down
anywhere where others may find it. If your passphrase is weak, then it can be
hacked.
After execute the above command ,
PGP Command line will now generate your keypair. You should see your Key ID (i.e. 0X12345678), and a message that the key was successfully generated.
Step 3:-
pgp --list-keys
list the public keys in the PGP server
Step 4:-
pgp --export 0x12345678
Export The Public Key
Now Public key creation process is over.
After that you can send the export public key to customer
After sending the customer your public key , we have to collect customer’s public key
First we need to import that public key.
pgp --import "PGP Joe.asc"
PGP Joe.asc is the public key of the customer
For this way we can use PGP encryption process.
Wednesday, October 13, 2010
Sri Lankan Milk production




Sri Lanka is an island.Plenty of greenery and sunshine are freely available.
In 2006 Sri Lanka produced 7000 Metric Tons of Powdered Milk.Main four sri lankan companies have help for these production.But the pathetic situation is sri lanka imports 68000 Metric Tons of Powdered Milk.That is too much.Why can not sri lanka made it's own requirement ? Do we need to import such massive qty from other countries ?
But this situation is much recovered in 2008 ,In 2008 Sri lanka produced 7500 Metric Tons of Powdered Milk.But Still Sri Lanka had to import 62000 Metric Tons from the other countries.
Major Powdered Milk production compaines are Nestle,Milco,Kothmale and Maliban.
But all these companies are famous for manufacturing following product(Milk food).
* UHT Tetra Milk
* Cheese
* Yoghurt
* Ice Cream
* Fresh Cream
* Ghee
* Curd
* Milk Powder
* Butter
* Sterilized Milk
Sri lanka is in front of Milk food production.In 2008 Sri lanka produced 2800 Metric Tons of Milk food.But still In 2008 Sri lanka had to import 50 Metric Tons from other countries.
Tuesday, September 14, 2010
Isurumuniya CD

Today i brought a old music cd,which contains old songs. But when i listen to that music ,i feel i was in more comfortable zone.It contains 20 songs.All those songs are song by Chitra somapala.I do not any thing about her except her voice.Her voice is close to me.At the present none of the media is doing promote on this music cd.But it really good.There fore i just feel to type some comment about this cd. This cd contains many famous songs."Isurumuniyehi","Kurulu Game","Dambulu Gale","Udarata Kandukara" and many more. I invited all the viewer, to go and listen to this cd.
Wednesday, August 25, 2010
SOA Architecture
Sunday, August 22, 2010
Session Bean Example ....
This is the session Bean example i have done.
public class BalanceInquiryBean extends AbstractCommonSMSBanking implements SessionBean,CommonSMSBanking{
public BalanceInquiryBean() {
super();
// TODO Auto-generated constructor stub
}
................
public void ejbCreate() throws CreateException {
// TODO Auto-generated method stub
}
public Object getAccountDetails(String PhoneNo,String PinNo,String SeqNo){
if(("D").equals(this.getDayNightMode()) ){
SMS002L2DAOImpl sms002L2 = new SMS002L2DAOImpl();
SMS002L2 sms002L2Obj = null;
..................
}
Home Interface
defines the methods that allow a client to create and find an entity bean.
Example:-
public interface BalanceInquiryHome extends EJBHome {
public Object getAccountDetails(String PhoneNo,String PinNo,String SeqNo) throws RemoteException, CreateException;
}
Remote Interface
The remote interface extends javax.ejb.EJBObject and defines the business methods that a remote client may invoke.
public interface BalanceInquiry extends EJBObject {
public Balance generateBalance() throws RemoteException, CreateException;
}
public class BalanceInquiryBean extends AbstractCommonSMSBanking implements SessionBean,CommonSMSBanking{
public BalanceInquiryBean() {
super();
// TODO Auto-generated constructor stub
}
................
public void ejbCreate() throws CreateException {
// TODO Auto-generated method stub
}
public Object getAccountDetails(String PhoneNo,String PinNo,String SeqNo){
if(("D").equals(this.getDayNightMode()) ){
SMS002L2DAOImpl sms002L2 = new SMS002L2DAOImpl();
SMS002L2 sms002L2Obj = null;
..................
}
Home Interface
defines the methods that allow a client to create and find an entity bean.
Example:-
public interface BalanceInquiryHome extends EJBHome {
public Object getAccountDetails(String PhoneNo,String PinNo,String SeqNo) throws RemoteException, CreateException;
}
Remote Interface
The remote interface extends javax.ejb.EJBObject and defines the business methods that a remote client may invoke.
public interface BalanceInquiry extends EJBObject {
public Balance generateBalance() throws RemoteException, CreateException;
}
Subscribe to:
Posts (Atom)