[Aglets-developer] How i can make encryption with Aglet?
Status: Beta
Brought to you by:
cat4hire
From: Ghada M. <gha...@ya...> - 2005-04-20 11:32:11
|
Hi all, I made the implementation of DES Algorithm"Digital Encryption Standard",and it works very will,but when i tried to insert it in onCreation method of my aglet it enters the second cath when i try to create the cipher and it couldn`t recognize the DES algorithm although it generates the key of DES correctly try { KeyGenerator keygen = KeyGenerator.getInstance("DES"); SecretKey desKey = keygen.generateKey(); } catch (NoSuchAlgorithmException ex) { my_frame.jTextArea1.setText("Key generation Failed"); } my_frame.jTextArea1.setText("Key generation Right"); //////////// From here Error begin//////////////////////// Cipher desCipher; try { desCipher = Cipher.getInstance("DES"); } catch (NoSuchPaddingException ex1) { my_frame.jTextArea1.setText("Create cipher failed 1"); } catch (NoSuchAlgorithmException ex1) { my_frame.jTextArea1.setText("Create cipher failed 2"); } I think it may be a problem in the security prefrences of Tahiti but i`m not sure. can anyone help me plz Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |