├── setup.py └── README.md /setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup 2 | 3 | 4 | 5 | from Cython.Build import cythonize 6 | setup( 7 | ext_modules = cythonize("scrypt.pyx",compiler_directives={'language_level' : "3"}) 8 | ) 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Encrypt/Compile File Python 2 | 3 | # Tutorial 1 4 | ``` 5 | bahasa Indonesia & Language English 6 | ``` 7 | - Indonesia 8 | 9 | Rapikan Dahulu isi File Yang ingin Kalian Compile Seperti Strings dan Space Nya Seperti Gambar Di Bawah Ini 10 | 11 | - Englis 12 | 13 | First, tidy up the contents of the file you want to compile, such as strings and the space as shown below 14 | ![IMG_20220410_091750](https://user-images.githubusercontent.com/88397313/162598681-db68cac2-4d7f-492e-9b8c-b2305ef89042.jpg) 15 | 16 | # Tutorial 2 17 | ``` 18 | bahasa Indonesia & Language English 19 | ``` 20 | - Indonesia 21 | 22 | Jika Sudah Di Rapikan Isi Dalam File Yang Ingin Kalian Compile 23 | Ubah Nama File contoh.py Kalian Menjadi contoh.pyx Seperti Gambar Di Bawah Ini 24 | ``` 25 | mv scrypt.py scrypt.pyx 26 | ``` 27 | 28 | - English 29 | 30 | If you've trimmed the contents of the file you want to compile 31 | Change the name of your example.py file to example.pyx as shown below 32 | ``` 33 | mv scrypt.py scrypt.pyx 34 | ``` 35 | ![IMG_20220410_092302](https://user-images.githubusercontent.com/88397313/162598784-3f0ae90f-c5e9-4bd6-8252-b3088b27638a.jpg) 36 | 37 | # Tutorial 3 38 | ``` 39 | bahasa Indonesia & Language English 40 | ``` 41 | - Indonesia 42 | 43 | jika Sudah Di Ubah Kalian Buat Nama File setup.py Dan Isi Dalan File Nya Kalian Tinggal Ambil Aja Di Dalam Direktori Github Saya Atau Kalian Bisa Mengetik Code Nya 44 | 45 | - Englis 46 | 47 | if it has been changed, you create the file name setup.py and the contents of the file, you just need to take it in my Github directory or you can type the code 48 | ![IMG_20220410_092321](https://user-images.githubusercontent.com/88397313/162598941-b6147ca0-efca-4769-9fc2-2128ba8ec859.jpg) 49 | 50 | # Tutorial 4 51 | ``` 52 | bahasa Indonesia & Language English 53 | ``` 54 | - Indoneaia 55 | 56 | Ubah Nama Yang Ada Di Gambar Di Bawah Ini Menjadi File kalian Contoh...```your_file.pyx``` 57 | 58 | - Englis 59 | 60 | Change the name in the image below into your file Example...```your_file.pyx``` 61 | ![IMG_20220410_094658](https://user-images.githubusercontent.com/88397313/162599030-e74bbc91-479e-4a87-897a-d5812ca09db8.jpg) 62 | 63 | # Tutorial 5 64 | ``` 65 | bahasa Indonesia & Language English 66 | ``` 67 | - Indonesia 68 | 69 | Jika Sudah Di Ubah Yang Di Lingkari Biru Di Dalam File Yang Bernama setup.py, kalian Kembali Ke Terminal Awal Dan Install Modul Cython nya 70 | ``` 71 | pip Install cython 72 | ``` 73 | - Englis 74 | 75 | If you have changed what is circled in blue in the file called setup.py, you return to the initial terminal and install the Cython module. 76 | ``` 77 | pip Install cython 78 | ``` 79 | # Tutorial 6 80 | ``` 81 | bahasa Indonesia & Language English 82 | ``` 83 | - Indonesia 84 | 85 | Jika Sudah Install Modul cython kalian Tinggal Jalan Kan File setup nya 86 | Cara Nya ```$ python setup.py build_ext --inplace``` 87 | 88 | - English 89 | 90 | If you have installed your python module, just run the setup file 91 | His method ```$ python setup.py build_ext --inplace``` 92 | 93 | # Tutorial 7 94 | ``` 95 | bahasa Indonesia & Language English 96 | ``` 97 | - Indonesia 98 | Jika Hasil Nya Seperti Gambar Di Bawah Ini Berarti File Kalian Berhasil Di Compile Dengan Cython 99 | 100 | - Englis 101 | 102 | If the results are like the image below, it means that your file was successfully compiled with Cython 103 | ![IMG_20220410_092355](https://user-images.githubusercontent.com/88397313/162599197-8367c8b2-18fc-4c96-970d-0490dbb488ae.jpg) 104 | 105 | # Tutorial 8 106 | ``` 107 | bahasa Indonesia & Language English 108 | ``` 109 | - Indonesia 110 | 111 | Kalian Pergi Ke Folder Kalian Dan Lihat Hasil Nya Seperti Gambar Di Bawah Ini 112 | 113 | - English 114 | 115 | You Go To Your Folder And See The Results As Pictured Below 116 | ![IMG_20220410_092551](https://user-images.githubusercontent.com/88397313/162599259-c1a22014-0e93-4b95-8f37-37642442f951.jpg) 117 | 118 | 119 | # SELESAI 120 | # DONE 121 | 122 | ``` 123 | SELAMAT MENCOBA 124 | GOOD LUCK 125 | ``` 126 | --------------------------------------------------------------------------------