-2

I created my own encrypt / decrypt script and I can encrypt any kind of strings. I just need to know how can I use my script to encrypt a file like an image or a text file?

My script is working in PHP, C++ and VB.

  • 1
    This is a programming question, despite being about encryption, so would be better suited to stackoverflow. Please be aware that home-built encryption methods are generally considered to be a bad idea due to lacking peer review over a long period. – Matthew Aug 24 '16 at 9:45
  • @Matthw thx for the suggestion :) – Sinf Aug 24 '16 at 9:56
  • 1
    Please do not migrate this to Stack Overflow. In it's current form it is to broad and will just be closed there. @Soheyl If you want help on Stack Overflow, you will need to ask a much more detailed and specific question. And you need to try something yourself, not just ask for the code. Read the Help Center over there before you ask. – Anders Aug 24 '16 at 10:29
  • 1
    I do wonder what kind of encryption algorithm can only handle text and not binary... – billc.cn Aug 24 '16 at 12:21
  • 1
    I agree that this question should not be migrated, but not because it deals with programming. Wring your own encryption/decryption script sounds eerily similar to rolling your own crypto algorithms. Don't be a Dave. – Verbal Kint Aug 24 '16 at 12:44
0

Can be very basic: Encode file to base64, encrypt it, sent it to target, decrypt with your script to base64 and decode the base64 to a image file. But this has nothing to do with informaction security. Move to StackOverflow is better.

  • 2
    If you think a question is off topic, please don't post an answer. – Anders Aug 24 '16 at 10:32
  • 1
    Please don't suggest moving questions like these to Stack Overflow. The question doesn't show research effort, doesn't show code.... sending it to SO in its current form is just going to get it downvoted into oblivion. It should be toroughly improved before it's a candidate for migration. – S.L. Barth - Reinstate Monica Aug 24 '16 at 10:34
  • True @S.L.Barth, sorry. – Adam Sitemap Aug 24 '16 at 11:03
  • @Anders i think its a good question. I was doubting if security.stackexchange.com was the best exchange to ask this. – Adam Sitemap Aug 24 '16 at 11:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.