@@ -59,14 +59,6 @@ const MainPage: React.FC = () => {
5959 const [ decryptionStatus , setDecryptionStatus ] = useState < 'idle' | 'success' | 'error' > ( 'idle' ) ;
6060 const [ lastError , setLastError ] = useState < string > ( '' ) ;
6161
62- const showWebRestrictionNotice = ( ) => {
63- notification . info ( {
64- message : '웹 데모 제한' ,
65- description : '웹 데모에서는 RSA 암·복호화 기능을 사용할 수 없습니다. 데스크톱 버전에서 전체 기능을 이용해주세요.' ,
66- placement : 'topRight' ,
67- } ) ;
68- } ;
69-
7062 // 선택된 키가 변경될 때마다 selectedKey 업데이트 및 알고리즘 자동 설정
7163 useEffect ( ( ) => {
7264 const key = keys . find ( k => k . id === selectedKeyId ) ;
@@ -79,11 +71,6 @@ const MainPage: React.FC = () => {
7971 } , [ selectedKeyId , keys , selectKey ] ) ;
8072
8173 const handleEncrypt = async ( ) => {
82- if ( isWebEnvironment ) {
83- showWebRestrictionNotice ( ) ;
84- return ;
85- }
86-
8774 if ( ! encryptText . trim ( ) ) {
8875 message . error ( '암호화할 텍스트를 입력해주세요.' ) ;
8976 return ;
@@ -157,11 +144,6 @@ const MainPage: React.FC = () => {
157144 } ;
158145
159146 const handleDecrypt = async ( ) => {
160- if ( isWebEnvironment ) {
161- showWebRestrictionNotice ( ) ;
162- return ;
163- }
164-
165147 if ( ! decryptText . trim ( ) ) {
166148 message . error ( '복호화할 텍스트를 입력해주세요.' ) ;
167149 return ;
@@ -512,7 +494,7 @@ const MainPage: React.FC = () => {
512494 const renderTabBarExtraContent = ( ) => {
513495 const isEncryptTab = activeTab === 'encrypt' ;
514496 const hasInputText = ( isEncryptTab ? encryptText : decryptText ) . trim ( ) ;
515- const canExecute = ! isWebEnvironment && ! ! selectedKey && ! ! hasInputText && ! loading ;
497+ const canExecute = ! ! selectedKey && ! ! hasInputText && ! loading ;
516498
517499 return (
518500 < Space >
@@ -560,8 +542,8 @@ const MainPage: React.FC = () => {
560542 < Alert
561543 type = "info"
562544 showIcon
563- message = "웹 데모 제한 안내 "
564- description = "웹 데모에서는 RSA 암·복호화 기능이 비활성화되어 있습니다. 데스크톱 앱에서 전체 기능을 사용하거나 체인 빌더, HTTP 도구 등을 체험해보세요 ."
545+ message = "브라우저 환경에서는 로컬에서만 데이터를 처리합니다 "
546+ description = "암·복호화는 이 브라우저에서만 실행되고 키는 로컬 스토리지에 보관되며 30일이 지나면 자동으로 삭제됩니다. 민감한 데이터는 데스크톱 앱에서 처리하는 것을 권장합니다 ."
565547 style = { { marginBottom : 16 } }
566548 />
567549 ) }
0 commit comments