Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class DES { private static Cipher pbeCipher; private static SecretKey pbeKey; public KeyGenerator kgen ; private static PBEKeySpec pbeKeySpec; private static PBEParameterSpec pbeParamSpec; private static SecretKeyFactory keyFac; byte[] ciphertext={} ; byte[] salt = { (byte)0xc7, (byte)0x73, (byte)0x21, (byte)0x8c, (byte)0x7e, (byte)0xc8, (byte)0xee, (byte)0x99 }; int count=20; public DES(){ try{ pbeCipher = Cipher.getInstance("PBEWithMD5AndDES"); } catch(NoSuchAlgorithmException e){ Log.e("Ya Reza", e.toString());} catch(NoSuchPaddingException e){ Log.e("Ya Reza", e.toString());} } public void setpass(String Key){ pbeKeySpec = new PBEKeySpec(Key.toCharArray()); try{ keyFac = SecretKeyFactory.getInstance("PBEWithMD5AndDES");} catch(NoSuchAlgorithmException e){ Log.e("Ya Reza", e.toString());} try{ pbeKey = keyFac.generateSecret(pbeKeySpec);} catch(InvalidKeySpecException e){ Log.e("Ya Reza", e.toString()); } } public String encrypt(String data)throws Exception{ try{ pbeCipher.init(Cipher.ENCRYPT_MODE, pbeKey, pbeParamSpec);} catch(InvalidKeyException e){ Log.e("Ya Reza", e.toString()); } catch(InvalidAlgorithmParameterException e){ Log.e("Ya Reza", e.toString()); } try{ ciphertext= pbeCipher.doFinal(data.getBytes());} catch(IllegalBlockSizeException e){ Log.e("Ya Reza", e.toString()); } catch(BadPaddingException e){ Log.e("Ya Reza", e.toString()); } return new String(ciphertext); public String decrypt(String data)throws Exception{ try{ pbeCipher.init(Cipher.DECRYPT_MODE, pbeKey, pbeParamSpec);} catch(InvalidKeyException e){ Log.e("Ya Reza", e.toString()); } catch(InvalidAlgorithmParameterException e){ Log.e("Ya Reza", e.toString()); } try{ ciphertext= pbeCipher.doFinal(data.getBytes());} catch(IllegalBlockSizeException e){ Log.e("Ya Reza", e.toString()); } catch(BadPaddingException e){ Log.e("Ya Reza", e.toString()); } return new String(ciphertext); } }