Monday, May 15, 2017

كود يقيك من التوصل بالصور المفخخة

هذا الكود يمكنك من معرفة اذا ما كان هناك فيروس في الصورة المرسلة لك كما يمكنك ارسال به رسائل مشفرة  لن يتجسس عليكم اي شخص هذا هو الكود

import java.io.*;import java.util.List;import org.apache.commons.io.IOUtils;public class Image    {        public static void main ( String[] arg ) throws FileNotFoundException , IOException            {                InputStream inputIMAGE = new BufferedInputStream ( new FileInputStream (                        new File ( "/home/ahmed/Images/coucherdesoleil_003.jpg" ) ) );                BufferedReader inputTEXT = new BufferedReader ( new FileReader (                        new File ( "/home/ahmed/Images/wordlist" ) ) );                String image = IOUtils.toString ( inputIMAGE );                List<String> list = IOUtils.readLines ( inputTEXT );                for ( String s : list )                    {                        if ( image.contains ( s ) )                            {                                System.out.println ( s );                            }                    }            }    }
هذا الكود بلغة الجافا

No comments:

Post a Comment