Are you a regular stikked user? Signup so you can keep track of your pastes!
  1. // Aufruf
  2. HeavyCryptEngine.getInstance().storeFile(datei, symkey.getEncoded()))
  3.  
  4. //Fkt
  5.  
  6.  public boolean storeFile(File datei, byte[] bytearray){
  7.          try {
  8.                 // Erstelle Output Streams und schreibe den Key in eine Datei
  9.                 FileOutputStream fs = new FileOutputStream(datei);
  10.                 ByteArrayOutputStream baos = new ByteArrayOutputStream();
  11.                 baos.write(bytearray);
  12.                 baos.writeTo(fs);
  13.                 return true;
  14.             } catch (FileNotFoundException e) {
  15.                 System.out.println(e.getMessage());
  16.                 return false;
  17.             } catch (IOException e) {
  18.                 System.out.println(e.getMessage());
  19.                 return false;
  20.             }
  21.     }

Replies to Untitled

Title Name When
RE: Untitled jpg 1 Year ago.

Reply to "Untitled"

Here you can reply to the paste above

Create a snipurl

Make Private

Feeling clever? Set some advanced options.