imcrypt app
1.0.0
여기에는 텍스트 암호화 및 암호 해독을위한 완벽한 멋진 웹 앱이 있습니다.
pip install streamlit
pip install imcrypt
이 저장소를 복제하고 CD를 imcrypt-app 으로 연결하고 아래 명령을 실행하십시오.
streamlit run app . py 
브라우저 에서이 주소 http : // localhost : 8501로 이동하십시오.


코드 자체는 매우 짧으며 자신을 볼 수 있습니다.
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