imcrypt app
1.0.0
Di sini kita memiliki aplikasi web yang menakjubkan untuk enkripsi dan dekripsi teks, dibangun menggunakan streamlit.
pip install streamlit
pip install imcrypt
Cukup klon repositori ini, dan CD ke imcrypt-app dan jalankan perintah di bawah ini:
streamlit run app . py 
Dan buka alamat ini http: // localhost: 8501 di browser Anda.


Kode itu sendiri sangat singkat, Anda dapat melihat diri Anda sendiri.
import streamlit as st
import imcrypt
st . title ( 'Imcrypt' )
st . text ( 'A secure text encryption tool.' )
text = st . text_input ( 'Text:' )
e_type = st . selectbox ( 'Choose One:' , ( 'Encryption' , 'Decryption' ))
password = st . text_input ( 'password:' )
submit = st . button ( 'Submit' )
if submit :
#text or password should not be empty
if not ( password == '' or text == '' ):
#if Encryption is choosen
if e_type == 'Encryption' :
enc_text = imcrypt . encrypt ( text , key = password )
st . text_input ( 'Your Encrypted Text:' , f' { enc_text } ' )
#if Decryption is choosen
elif e_type == 'Decryption' :
try :
enc_text = imcrypt . decrypt ( text , key = password )
st . text_input ( 'Your Decrypted Text:' , f' { enc_text } ' )
except Exception :
pass