-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
4000 lines (3611 loc) · 181 KB
/
Copy pathindex.html
File metadata and controls
4000 lines (3611 loc) · 181 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Blossom</title>
<link rel="icon" href="fblogo.png">
<meta name="keywords" content="
파일블라썸,
파일 블라썸,
파일블라섬,
File Blossom,
FileBlossom,
암호화 파일 공유,
암호화 파일 전송,
보안 파일 공유,
안전한 파일 공유,
파일 공유,
파일 전송,
대용량 파일 전송,
무료 파일 공유,
회원가입 없는 파일 공유,
익명 파일 공유,
프라이빗 파일 공유,
개인정보 없는 파일 공유,
AES-256-GCM,
종단간 암호화,
E2EE 파일 공유,
클라이언트 사이드 암호화,
브라우저 암호화,
보안 파일 전송,
자동 삭제 파일 공유,
임시 파일 공유,
드래그 앤 드롭 파일 업로드,
분할 파일 업로드,
Nostr 파일 공유,
Blossom 파일 공유,
encrypted file sharing,
secure file sharing,
private file sharing,
anonymous file sharing,
end-to-end encryption,
E2EE,
AES-256-GCM encryption,
client-side encryption,
browser-based encryption,
secure file transfer,
private file transfer,
temporary file sharing,
anonymous file transfer,
large file transfer,
free file sharing,
no registration file sharing,
drag and drop file upload,
encrypted file transfer,
Nostr file sharing,
Blossom file sharing
">
<meta name="description"content="File Blossom is a secure and private file-sharing service with browser-based AES-256-GCM encryption. Share files safely without registration, with end-to-end encryption and private file transfer.">
<meta name="google-site-verification" content="lhLKhtIFeYuGOSWBmxyVGsxfOHFgyI4aRsnNf7QzYj8" />
<link rel="canonical" href="https://qyronx.github.io/fileblossom/">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background: #0b0d11;
background-image:
radial-gradient(circle at 15% 0%, rgba(240,98,146,0.08), transparent 45%),
radial-gradient(circle at 100% 100%, rgba(240,98,146,0.05), transparent 40%);
color: #e6edf3;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
}
.container {
background: #161b22;
padding: 2rem;
border-radius: 16px;
max-width: 750px;
width: 100%;
border: 1px solid #30363d;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.header-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 24px;
}
h1 {
font-family: 'Space Grotesk', 'Inter', sans-serif;
font-size: 28px;
font-weight: 700;
letter-spacing: -0.01em;
margin-bottom: 4px;
background: linear-gradient(135deg, #f06292, #f8a5c2);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
}
.sub {
color: #8b949e;
font-size: 14px;
}
.lang-switch {
display: flex;
flex-shrink: 0;
background: #0d1117;
border-radius: 7px;
padding: 3px;
border: 1px solid #30363d;
gap: 2px;
}
.lang-option {
padding: 5px 12px;
border-radius: 5px;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.02em;
color: #6e7681;
cursor: pointer;
transition: 0.2s;
user-select: none;
}
.lang-option:hover { color: #c9d1d9; }
.lang-option.active {
color: #f06292;
background: rgba(240,98,146,0.15);
}
.upload-area {
border: 2px dashed #30363d;
border-radius: 12px;
padding: 40px 20px;
text-align: center;
cursor: pointer;
transition: all 0.25s ease;
background: #0d1117;
margin-bottom: 16px;
}
.upload-area:hover, .upload-area.dragover {
border-color: #f06292;
background: #0d1117;
transform: scale(1.01);
}
.upload-area .icon { font-size: 48px; display: block; margin-bottom: 8px; }
.upload-area p { color: #8b949e; }
.upload-area strong { color: #f0f6fc; }
#fileInput { display: none; }
.multi-mode-toggle {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 16px;
padding: 10px 16px;
background: #0d1117;
border-radius: 8px;
border: 1px solid #21262d;
}
.mode-label {
font-size: 14px;
font-weight: 500;
color: #e6edf3;
}
.toggle-switch {
display: flex;
background: #21262d;
border-radius: 6px;
padding: 3px;
cursor: pointer;
border: 1px solid #30363d;
transition: 0.3s;
user-select: none;
}
.toggle-switch.active {
border-color: #f06292;
background: #1a1a2e;
}
.toggle-option {
padding: 4px 14px;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
transition: 0.3s;
color: #484f58;
}
.toggle-option.off {
color: #8b949e;
}
.toggle-option.on {
color: #484f58;
}
.toggle-switch.active .toggle-option.off {
color: #484f58;
}
.toggle-switch.active .toggle-option.on {
color: #f06292;
background: rgba(240,98,146,0.15);
}
.toggle-status {
font-size: 13px;
color: #8b949e;
margin-left: auto;
}
.toggle-status.active {
color: #f06292;
}
.multi-upload-btn {
display: none;
width: 100%;
padding: 12px;
margin-top: 12px;
font-size: 15px;
font-weight: 600;
background: #238636;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
transition: 0.2s;
}
.multi-upload-btn:hover { background: #2ea043; }
.multi-upload-btn.visible { display: block; }
.multi-upload-btn:disabled {
background: #21262d;
color: #6e7681;
cursor: not-allowed;
opacity: 0.7;
}
.multi-upload-btn:disabled:hover { background: #21262d; }
.file-list-preview {
margin-top: 12px;
max-height: 150px;
overflow-y: auto;
background: #0d1117;
border-radius: 8px;
border: 1px solid #21262d;
padding: 8px;
display: none;
}
.file-list-preview.visible { display: block; }
.file-list-preview .file-item {
font-size: 12px;
color: #8b949e;
padding: 4px 8px;
border-bottom: 1px solid #1a1a2a;
display: flex;
justify-content: space-between;
align-items: center;
}
.file-list-preview .file-item:last-child { border-bottom: none; }
.file-list-preview .file-item .size { color: #484f58; }
.file-list-preview .file-item .remove-btn {
color: #484f58;
cursor: pointer;
font-size: 14px;
background: none;
border: none;
padding: 0 4px;
transition: color 0.2s;
line-height: 1;
}
.file-list-preview .file-item .remove-btn:hover {
color: #f85149;
}
.file-list-preview .file-item .remove-btn:disabled {
color: #30363d;
cursor: not-allowed;
}
.file-list-preview .file-item .remove-btn:disabled:hover {
color: #30363d;
}
.progress-wrap {
display: none;
margin: 16px 0;
background: #0d1117;
padding: 16px;
border-radius: 8px;
border: 1px solid #21262d;
}
.progress-bar {
width: 100%;
height: 8px;
background: #21262d;
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #f06292, #f8a5c2);
transition: width 0.3s ease;
}
.progress-text {
display: flex;
justify-content: space-between;
font-size: 13px;
color: #8b949e;
margin-top: 6px;
}
.progress-chunk-info {
font-size: 12px;
color: #8b949e;
margin-top: 4px;
text-align: center;
}
.result-box {
margin: 16px 0;
padding: 16px;
border-radius: 8px;
background: #0d1117;
border: 1px solid #21262d;
display: none;
}
.result-box.success { border-color: #238636; }
.result-box.error { border-color: #da3633; }
.link-field {
display: flex;
gap: 8px;
margin: 10px 0;
}
.link-field input {
flex: 1;
padding: 10px 12px;
background: #0d1117;
border: 1px solid #30363d;
border-radius: 6px;
color: #e6edf3;
font-size: 13px;
font-family: 'JetBrains Mono', monospace;
outline: none;
}
.link-field input:focus { border-color: #f06292; }
.btn {
padding: 10px 20px;
border: none;
border-radius: 6px;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: 0.2s;
background: #238636;
color: #fff;
}
.btn:hover { background: #2ea043; }
.btn-secondary {
background: #21262d;
color: #c9d1d9;
}
.btn-secondary:hover { background: #30363d; }
.decrypt-section {
margin-top: 28px;
padding-top: 24px;
border-top: 1px solid #21262d;
}
.decrypt-section h3 {
font-family: 'Space Grotesk', 'Inter', sans-serif;
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
color: #f0f6fc;
}
.decrypt-row {
display: flex;
gap: 8px;
}
.decrypt-row input {
flex: 1;
padding: 10px 12px;
background: #0d1117;
border: 1px solid #30363d;
border-radius: 6px;
color: #e6edf3;
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
outline: none;
}
.decrypt-row input:focus { border-color: #f06292; }
.badge {
display: inline-block;
font-size: 11px;
padding: 2px 10px;
border-radius: 20px;
background: #21262d;
color: #8b949e;
margin-top: 4px;
}
.mt-8 { margin-top: 8px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-green { color: #3fb950; }
.text-red { color: #f85149; }
.text-muted { color: #8b949e; }
.truncate {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
display: inline-block;
vertical-align: middle;
}
@media (max-width: 600px) {
.container { padding: 1.25rem; }
.link-field { flex-direction: column; }
.decrypt-row { flex-direction: column; }
.header-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
button:focus-visible,
.toggle-switch:focus-visible,
.lang-option:focus-visible,
input:focus-visible,
textarea:focus-visible,
.upload-area:focus-visible,
.footer-link:focus-visible {
outline: 2px solid #f06292;
outline-offset: 2px;
}
.short-url {
color: #f06292;
text-decoration: underline;
cursor: pointer;
}
.short-url:hover { color: #f8a5c2; }
.url-parts-container {
margin-top: 8px;
max-height: 150px;
overflow-y: auto;
background: #0d1117;
border-radius: 6px;
border: 1px solid #21262d;
padding: 8px;
}
.url-part {
font-size: 11px;
color: #8b949e;
font-family: monospace;
padding: 2px 4px;
border-bottom: 1px solid #1a1a2a;
word-break: break-all;
}
.url-part:last-child { border-bottom: none; }
.url-part .part-number {
color: #f06292;
font-weight: 600;
margin-right: 6px;
}
.modal-overlay {
display: none;
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.7);
justify-content: center;
align-items: center;
z-index: 1000;
padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
background: #161b22;
border: 1px solid #30363d;
border-radius: 16px;
max-width: 600px;
width: 100%;
max-height: 80vh;
overflow-y: auto;
padding: 2rem;
position: relative;
box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.modal-content h2 {
font-size: 22px;
color: #f0f6fc;
margin-bottom: 16px;
}
.modal-content h3 {
font-size: 16px;
color: #f0f6fc;
margin-top: 16px;
margin-bottom: 8px;
}
.modal-content p {
font-size: 14px;
color: #c9d1d9;
line-height: 1.6;
margin-bottom: 8px;
}
.modal-content ul {
font-size: 14px;
color: #c9d1d9;
padding-left: 20px;
margin-bottom: 8px;
}
.modal-content li { margin-bottom: 4px; }
.modal-content .btn-close {
position: sticky;
top: 0;
float: right;
background: none;
border: none;
color: #8b949e;
font-size: 24px;
cursor: pointer;
padding: 0 8px;
}
.modal-content .btn-close:hover { color: #f0f6fc; }
.modal-content a {
color: #f06292;
text-decoration: underline;
}
.modal-content a:hover { color: #f8a5c2; }
.modal-content .code-block {
background: #0d1117;
padding: 8px 12px;
border-radius: 6px;
font-family: monospace;
font-size: 13px;
color: #e6edf3;
border: 1px solid #21262d;
margin: 4px 0 8px 0;
word-break: break-all;
}
.footer-link {
color: #484f58;
text-decoration: underline;
cursor: pointer;
font-size: 12px;
}
.footer-link:hover { color: #8b949e; }
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #0d1117;
border-radius: 3px;
}
::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 3px;
transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
background: #f06292;
}
::-webkit-scrollbar-corner {
background: #0d1117;
}
* {
scrollbar-width: thin;
scrollbar-color: #30363d #0d1117;
}
*:hover {
scrollbar-color: #f06292 #0d1117;
}
.modal-content::-webkit-scrollbar {
width: 6px;
}
.modal-content::-webkit-scrollbar-track {
background: #0d1117;
border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
background: #f06292;
}
.url-parts-container::-webkit-scrollbar {
width: 4px;
}
.url-parts-container::-webkit-scrollbar-track {
background: #0d1117;
border-radius: 2px;
}
.url-parts-container::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 2px;
}
.url-parts-container::-webkit-scrollbar-thumb:hover {
background: #f06292;
}
</style>
</head>
<body>
<div class="container">
<div class="header-row">
<div>
<h1>🌸 File Blossom</h1>
<div class="sub" id="subTagline">Encrypted File Sharing</div>
</div>
<div class="lang-switch" id="langSwitch" role="group" aria-label="Language">
<span class="lang-option" id="langKo" data-lang="ko" tabindex="0" role="button">KO</span>
<span class="lang-option" id="langEn" data-lang="en" tabindex="0" role="button">EN</span>
</div>
</div>
<!-- 토글 HTML -->
<div class="multi-mode-toggle">
<span class="mode-label" id="modeLabel">📂 <span data-i18n="multiModeLabel">멀티 모드</span></span>
<div class="toggle-switch" id="multiToggle" role="switch" aria-checked="false" tabindex="0">
<span class="toggle-option off">OFF</span>
<span class="toggle-option on">ON</span>
</div>
<span class="toggle-status" id="multiStatus" data-i18n="statusOff">비활성</span>
</div>
<div class="multi-mode-toggle" style="margin-top:8px;">
<span class="mode-label"><span data-i18n="Auto-Del On Download">다운로드 시 자동 삭제</span></span>
<div class="toggle-switch" id="autoDeleteToggle" role="switch" aria-checked="false" tabindex="0">
<span class="toggle-option off">OFF</span>
<span class="toggle-option on">ON</span>
</div>
<span class="toggle-status" id="autoDeleteStatus" data-i18n="statusOff">비활성</span>
</div>
<div class="upload-area" id="dropZone" role="button" tabindex="0">
<span class="icon">🌸</span>
<p><strong data-i18n="clickWord">클릭</strong><span data-i18n="uploadHintRest">하여 파일 선택 또는 드래그앤드롭</span></p>
<p class="text-muted" style="font-size:12px;margin-top:6px;" id="uploadModeHint" data-i18n="uploadModeHintDefault">자동 분할 업로드 · AES-256-GCM 암호화</p>
<input type="file" id="fileInput" webkitdirectory multiple>
</div>
<div class="file-list-preview" id="fileListPreview">
<div style="font-size:12px;color:#8b949e;padding:4px 8px;font-weight:600;display:flex;justify-content:space-between;align-items:center;">
<span data-i18n="selectedFiles">선택된 파일들</span>
<span id="fileCount" style="font-size:10px;color:#484f58;">0</span>
</div>
<div id="fileListItems"></div>
</div>
<button class="multi-upload-btn" id="multiUploadBtn" data-i18n="compressAndUpload">압축하여 업로드</button>
<div class="progress-wrap" id="progressWrap">
<div class="progress-bar"><div class="progress-fill" id="progressFill"></div></div>
<div class="progress-text">
<span id="progressLabel" data-i18n="preparing">준비 중...</span>
<span id="progressPercent">0%</span>
</div>
<div class="progress-chunk-info" id="chunkInfo">0 / 0</div>
</div>
<div class="result-box" id="resultBox">
<div id="resultContent"></div>
</div>
<div class="decrypt-section">
<h3 data-i18n="decryptTitle">파일 복호화</h3>
<p class="text-muted" style="font-size:13px;margin-bottom:10px;" data-i18n="decryptDesc">공유 링크를 붙여넣고 복호화 버튼을 누르세요</p>
<div class="decrypt-row">
<input type="text" id="shareLinkInput" placeholder="https://.../?id={value}&k={value}">
<button class="btn" id="decryptBtn" data-i18n="decryptAndDownload">복호화 및 다운로드</button>
</div>
<div id="decryptResult" class="mt-8" style="font-size:14px;"></div>
</div>
<div style="margin-top:20px;font-size:12px;color:#484f58;text-align:center;border-top:1px solid #21262d;padding-top:16px;">
<span class="footer-link" id="termsLink" tabindex="0" role="button" data-i18n="termsLink">이용약관 및 작동 원리</span>
</div>
</div>
<div class="modal-overlay" id="termsModal">
<div class="modal-content">
<button class="btn-close" id="modalCloseBtn" aria-label="Close">×</button>
<h2 data-i18n="modalTitle">🌸 File Blossom 이용약관 및 작동 원리</h2>
<h3 data-i18n="modalHowTitle">🔐 작동 원리</h3>
<p data-i18n-html="modalHowIntro">File Blossom은 <strong>클라이언트 사이드 암호화</strong>를 기반으로 하는 파일 공유 도구입니다.</p>
<ul>
<li data-i18n-html="modalHow1"><strong>암호화:</strong> 파일은 브라우저에서 <strong>AES-256-GCM</strong> 알고리즘으로 암호화됩니다. 암호화 키는 서버로 전송되지 않으며, URL 프래그먼트(#)에만 저장됩니다.</li>
<li data-i18n-html="modalHow2"><strong>저장:</strong> 암호화된 파일은 <strong>Blossom</strong> 스토리지 서버에 분할 업로드됩니다. 파일은 SHA-256 해시로 주소 지정되며, 여러 서버에 미러링됩니다.</li>
<li data-i18n-html="modalHow3"><strong>위장:</strong> 파일은 1x1 PNG 이미지 끝에 숨겨져서 <strong>PNG 스터빙</strong> 기법으로 전송됩니다.</li>
<li data-i18n-html="modalHow4"><strong>공유:</strong> <strong>Nostr Gift-wrap</strong>을 통해 URL을 단축하여 안전하게 전달할 수 있습니다.</li>
</ul>
<h3 data-i18n="modalUsageTitle">File Blossom 사용방법</h3>
<ol>
<li data-i18n="modalUsage1">파일을 업로드합니다.</li>
<li data-i18n-html="modalUsage2">공유 URL이 나오면 복사해주세요.</li>
<li data-i18n-html="modalUsage3">나중에 삭제할 일이 생길 거 같으면 삭제 URL도 복사해두세요.</li>
</ol>
<h3 data-i18n="modalCautionTitle">⚠️ 주의사항</h3>
<ul>
<li data-i18n-html="modalCaution1">이 서비스는 <strong>보안 감사를 받지 않은</strong> 상태입니다. 중요한 파일은 본인 책임하에 사용하세요.</li>
<li data-i18n-html="modalCaution2">File Blossom은 <span style="color:red;">프론트엔드 코드를</span> 그대로 베껴가는 것을 <span style="color:red;">허용하지 않습니다.</span></li>
</ul>
<p style="margin-top:12px;font-size:12px;color:#484f58;" data-i18n-html="modalFooter">이용약관은 별도로 제공되지 않으며, 사용자는 본 서비스를 "있는 그대로" 사용하는 데 동의합니다.<br>Made By Areta<br><span>© Devareta Studio — 모든 권리 보유</span></p>
</div>
</div>
<script type="module">
// ============================================================
// 모든 JavaScript (ES Module, 브라우저 전용)
// ============================================================
let autoDeleteEnabled = false;
const autoDeleteToggle = document.getElementById('autoDeleteToggle');
const autoDeleteStatus = document.getElementById('autoDeleteStatus');
function toggleAutoDelete() {
autoDeleteEnabled = !autoDeleteEnabled;
autoDeleteToggle.classList.toggle('active', autoDeleteEnabled);
autoDeleteToggle.setAttribute('aria-checked', String(autoDeleteEnabled));
autoDeleteStatus.textContent = autoDeleteEnabled ? t('statusOn') : t('statusOff');
autoDeleteStatus.classList.toggle('active', autoDeleteEnabled);
}
autoDeleteToggle.addEventListener('click', toggleAutoDelete);
autoDeleteToggle.addEventListener('keydown', (e) => {
if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); toggleAutoDelete(); }
});
// ---------- 상수 ----------
const BLOSSOM_SERVERS = [
'https://cdn.hzrd149.com'
];
const CHUNK_SIZE = 10 * 1024 * 1024;
const DOWNLOAD_BATCH_BYTES = 300 * 1024 * 1024;
// ★ 공유 URL이 이 바이트 수를 넘으면 분할하여 여러 Gift-wrap으로 전송한다
const MAX_URL_BYTES = 50000;
const PNG_STUB = new Uint8Array([
0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A,
0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44, 0x52,
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x08, 0x06, 0x00, 0x00, 0x00, 0x1F, 0x15, 0xC4,
0x89, 0x00, 0x00, 0x00, 0x0A, 0x49, 0x44, 0x41,
0x54, 0x78, 0x9C, 0x63, 0x00, 0x01, 0x00, 0x00,
0x05, 0x00, 0x01, 0x0D, 0x0A, 0x2D, 0xB4, 0x00,
0x00, 0x00, 0x00, 0x49, 0x45, 0x4E, 0x44, 0xAE,
0x42, 0x60, 0x82
]);
const NOSTR_RELAYS = [
'wss://nos.lol'
];
// ---------- 다국어 (i18n) ----------
const I18N = {
ko: {
subTagline: '암호화된 파일 공유 · Blossom 스토리지 · 종단간 암호화',
multiModeLabel: '멀티 모드',
statusOn: '활성',
statusOff: '비활성',
clickWord: '클릭',
uploadHintRest: '하여 파일 선택 또는 드래그앤드롭',
uploadModeHintDefault: '자동 분할 업로드 · AES-256-GCM 암호화',
uploadModeHintMulti: '멀티 모드: 여러 파일 선택 후 업로드 버튼 클릭',
selectedFiles: '선택된 파일들',
fileCountText: '{n}개',
removeBtnTitle: '제거',
compressAndUpload: '압축하여 업로드',
uploading: '업로드 중...',
compressing: '압축 중...',
preparing: '준비 중...',
chunkInfoText: '청크: {current} / {total}',
decryptTitle: '파일 복호화',
decryptDesc: '공유 링크를 붙여넣고 복호화 버튼을 누르세요',
decryptAndDownload: '복호화 및 다운로드',
termsLink: '이용약관 및 작동 원리',
modalTitle: '🌸 File Blossom 이용약관 및 작동 원리',
modalHowTitle: '🔐 작동 원리',
modalHowIntro: 'File Blossom은 <strong>클라이언트 사이드 암호화</strong>를 기반으로 하는 파일 공유 도구입니다.',
modalHow1: '<strong>암호화:</strong> 파일은 브라우저에서 <strong>AES-256-GCM</strong> 알고리즘으로 암호화됩니다. 암호화 키는 서버로 전송되지 않으며, URL 프래그먼트(#)에만 저장됩니다.',
modalHow2: '<strong>저장:</strong> 암호화된 파일은 <strong>Blossom</strong> 스토리지 서버에 분할 업로드됩니다. 파일은 SHA-256 해시로 주소 지정되며, 여러 서버에 미러링됩니다.',
modalHow3: '<strong>위장:</strong> 파일은 1x1 PNG 이미지 끝에 숨겨져서 <strong>PNG 스터빙</strong> 기법으로 전송됩니다.',
modalHow4: '<strong>공유:</strong> <strong>Nostr Gift-wrap</strong>을 통해 URL을 단축하여 안전하게 전달할 수 있습니다.',
modalUsageTitle: 'File Blossom 사용방법',
modalUsage1: '파일을 업로드합니다.',
modalUsage2: '공유 URL이 나오면 복사해주세요.',
modalUsage3: '나중에 삭제할 일이 생길 거 같으면 삭제 URL도 복사해두세요.',
modalCautionTitle: '⚠️ 주의사항',
modalCaution1: '이 서비스는 <strong>보안 감사를 받지 않은</strong> 상태입니다. 중요한 파일은 본인 책임하에 사용하세요.',
modalCaution2: 'File Blossom은 <span style="color:red;">프론트엔드 코드를</span> 그대로 베껴가는 것을 <span style="color:red;">허용하지 않습니다.</span>',
modalFooter: '이용약관은 별도로 제공되지 않으며, 사용자는 본 서비스를 "있는 그대로" 사용하는 데 동의합니다.<br>Made By Areta<br><span>© Devareta Studio — 모든 권리 보유</span>',
folderNotSupported: '❌ 폴더는 지원되지 않습니다. 파일만 선택해주세요.',
selectFilesAlert: '업로드할 파일을 선택하세요.',
zipFailTitle: '❌ 압축 실패',
readingFile: '파일 읽는 중...',
encrypting: '암호화 중 (AES-256-GCM)...',
encryptDone: '암호화 완료, PNG 위장 및 분할 준비 중...',
uploadingBlossom: 'Blossom에 분할 업로드 중...',
uploadingBlossomProgress: 'Blossom에 분할 업로드 중 {current}/{total}',
uploadDoneLinking: '업로드 완료, 링크 생성 중...',
shorteningNostr: 'Nostr 단축 중...',
allDone: '완료!',
uploadSuccess: '✅ 업로드 성공',
fileInfo: '파일: {name} ({size} KB)',
chunkCount: '청크: {count}개 (각 {mb}MB)',
shareUrl: '공유 URL',
copy: '복사',
eventIdLabel: '이벤트 ID: {id}',
downloadTxt: 'TXT 파일로 다운로드',
shortenedUrls: '단축된 공유 URL ({count}개)',
copyAllUrls: '모든 URL 복사',
shortenFailed: '⚠️ 단축 실패, 원본 URL 사용',
copied: '✅ 복사됨',
errorOccurred: '❌ 오류 발생',
noValidUrls: '❌ 유효한 URL이 없습니다.',
invalidShareLink: '유효하지 않은 공유 링크입니다.',
downloadingBlossom: '⏳ Blossom에서 파일 다운로드 중...',
decrypting: '⏳ 복호화 중...',
decryptingProgress: '⏳ 복호화 중... ({current}/{total})',
decryptDoneSize: '✅ 복호화 완료! ({mb} MB)',
fileTooBig: '파일이 큽니다 ({mb} MB)',
download: '다운로드',
downloadStarted: '✅ 다운로드 시작: {name}',
decryptFail: '❌ 복호화 실패: {err}',
urlTooLongSplit: '⚠️ URL이 너무 길어 분할이 필요합니다.',
splitDownloadTxt: 'URL 분할 다운로드 (txt)',
copyPartial: '복사 (부분)',
copiedPartial: '✅ 복사됨 (부분)',
splitDownloaded: '✅ {count}개로 분할되어 다운로드되었습니다.',
fileName: '파일명: {name}',
downloadComplete: '✅ 다운로드 완료',
downloadTxtShort: 'TXT 다운로드',
decryptDoneDownload: '✅ 복호화 및 다운로드 완료!',
fileInfoKb: '파일: {name} ({size} KB)',
enterUrlToDecrypt: '❌ 복호화할 URL을 입력하세요.',
noEventIdInUrl: '❌ URL에 이벤트 ID가 없습니다.',
noPrivateKeyInUrl: '❌ 복호화에 필요한 개인키(k)가 없습니다.',
keyDecodeFail: '❌ 개인키 디코딩 실패',
lookingUpEvent: '⏳ 릴레이에서 이벤트 {id}... 조회 중',
eventNotFound: '❌ 릴레이에서 이벤트를 찾을 수 없습니다.',
decryptSuccessRedirect: '✅ 복호화 성공! 원본 URL로 이동 중...',
originalUrlInvalid: '❌ 원본 URL이 유효하지 않습니다: {url}',
errorGeneric: '❌ 오류: {err}',
enterLink: '링크를 입력하세요.',
downloadingChunks: '⏳ Blossom에서 청크 다운로드 중...',
fileTooBigPackage: '파일이 큽니다 ({mb} MB)',
downloadFull: '다운로드',
downloadSplit: '분할 다운로드 (청크)',
downloadCompleteNamed: '✅ 다운로드 완료: {name} ({size} KB)',
nostrEventPrompt: 'Nostr 이벤트 ID: {id} - "복호화" 버튼을 누르세요.'
},
en: {
subTagline: 'Encrypted file sharing · Blossom storage · End-to-end encryption',
multiModeLabel: 'Multi mode',
statusOn: 'On',
statusOff: 'Off',
clickWord: 'Click',
uploadHintRest: ' to choose a file, or drag and drop',
uploadModeHintDefault: 'Automatic chunked upload · AES-256-GCM encryption',
uploadModeHintMulti: 'Multi mode: select files, then click the upload button',
selectedFiles: 'Selected files',
fileCountText: '{n}',
removeBtnTitle: 'Remove',
compressAndUpload: 'Zip and upload',
uploading: 'Uploading...',
compressing: 'Compressing...',
preparing: 'Preparing...',
chunkInfoText: 'Chunks: {current} / {total}',
decryptTitle: 'Decrypt a file',
decryptDesc: 'Paste a share link and click decrypt',
decryptAndDownload: 'Decrypt and download',
termsLink: 'Terms & how it works',
modalTitle: '🌸 File Blossom — Terms & how it works',
modalHowTitle: '🔐 How it works',
modalHowIntro: 'File Blossom is a file-sharing tool built on <strong>client-side encryption</strong>.',
modalHow1: '<strong>Encryption:</strong> Files are encrypted in your browser with <strong>AES-256-GCM</strong>. The encryption key is never sent to a server — it only lives in the URL fragment (#).',
modalHow2: '<strong>Storage:</strong> Encrypted files are split and uploaded to <strong>Blossom</strong> storage servers. Files are addressed by SHA-256 hash and mirrored across multiple servers.',
modalHow3: '<strong>Disguise:</strong> Files are appended to the end of a 1x1 PNG image and transferred using a <strong>PNG stubbing</strong> technique.',
modalHow4: '<strong>Sharing:</strong> URLs can be shortened and delivered safely via <strong>Nostr Gift-wrap</strong>.',
modalUsageTitle: 'How to use File Blossom',
modalUsage1: 'Upload a file.',
modalUsage2: 'If a share URL appears, please copy it.',
modalUsage3: 'If you think you might need to delete it later, please also copy the delete URL.',
modalCautionTitle: '⚠️ Cautions',
modalCaution1: 'This service has <strong>not undergone a security audit</strong>. Use it for important files at your own risk.',
modalCaution2: 'File Blossom does <span style="color:red;">not permit</span> copying its <span style="color:red;">front-end code</span> as-is.',
modalFooter: 'No separate terms of service are provided; by using this service, you agree to use it "as is".<br>Made by Areta<br><span>© Devareta Studio — All rights reserved</span>',
folderNotSupported: '❌ Folders are not supported. Please select files only.',
selectFilesAlert: 'Select files to upload.',
zipFailTitle: '❌ Zip creation failed',
readingFile: 'Reading file...',
encrypting: 'Encrypting (AES-256-GCM)...',
encryptDone: 'Encryption done, preparing PNG disguise and split...',
uploadingBlossom: 'Uploading chunks to Blossom...',
uploadingBlossomProgress: 'Uploading chunks to Blossom {current}/{total}',
uploadDoneLinking: 'Upload complete, generating link...',
shorteningNostr: 'Shortening via Nostr...',
allDone: 'Done!',
uploadSuccess: '✅ Upload successful',
fileInfo: 'File: {name} ({size} KB)',
chunkCount: 'Chunks: {count} ({mb}MB each)',
shareUrl: 'Share URL',
copy: 'Copy',
eventIdLabel: 'Event ID: {id}',
downloadTxt: 'Download as TXT',
shortenedUrls: 'Shortened share URLs ({count})',
copyAllUrls: 'Copy all URLs',
shortenFailed: '⚠️ Shortening failed, using original URL',
copied: '✅ Copied',
errorOccurred: '❌ An error occurred',
combineFileReadFail: '❌ Failed to read file: {err}',
noValidUrls: '❌ No valid URLs.',
invalidShareLink: 'This is not a valid share link.',
downloadingBlossom: '⏳ Downloading file from Blossom...',
decrypting: '⏳ Decrypting...',
decryptingProgress: '⏳ Decrypting... ({current}/{total})',
decryptDoneSize: '✅ Decryption complete! ({mb} MB)',
fileTooBig: 'This file is large ({mb} MB)',
download: 'Download',
downloadStarted: '✅ Download started: {name}',
decryptFail: '❌ Decryption failed: {err}',
combineUrlDone: '✅ URLs combined',
urlTooLongSplit: '⚠️ The URL is too long and needs to be split.',
splitDownloadTxt: 'Download split URL (txt)',
copyPartial: 'Copy (partial)',
copiedPartial: '✅ Copied (partial)',
splitDownloaded: '✅ Downloaded as {count} parts.',
fileName: 'Filename: {name}',
downloadComplete: '✅ Download complete',
downloadTxtShort: 'Download TXT',
decryptDoneDownload: '✅ Decryption and download complete!',
fileInfoKb: 'File: {name} ({size} KB)',
enterUrlToDecrypt: '❌ Enter a URL to decrypt.',
noEventIdInUrl: '❌ No event ID in this URL.',
noPrivateKeyInUrl: '❌ Missing the private key (k) needed to decrypt.',
keyDecodeFail: '❌ Failed to decode the private key',
lookingUpEvent: '⏳ Looking up event {id}... on relays',
eventNotFound: '❌ Event not found on any relay.',
decryptSuccessRedirect: '✅ Decrypted! Redirecting to the original URL...',
originalUrlInvalid: '❌ The original URL is invalid: {url}',
errorGeneric: '❌ Error: {err}',
enterLink: 'Enter a link.',
downloadingChunks: '⏳ Downloading chunks from Blossom...',
fileTooBigPackage: 'This file is large ({mb} MB)',
downloadFull: 'Download full file',
downloadSplit: 'Download split (chunks)',
downloadCompleteNamed: '✅ Download complete: {name} ({size} KB)',
nostrEventPrompt: 'Nostr event ID: {id} — click "Decrypt" to continue.'
}
};
let currentLang = (typeof localStorage !== 'undefined' && localStorage.getItem('fb_lang')) || 'en';
function t(key, vars) {
const dict = I18N[currentLang] || I18N.ko;
let str = dict[key] !== undefined ? dict[key] : (I18N.ko[key] !== undefined ? I18N.ko[key] : key);
if (vars) {
for (const k in vars) {
str = str.split(`{${k}}`).join(vars[k]);
}
}
return str;
}
function setLang(lang) {
currentLang = lang;
if (typeof localStorage !== 'undefined') localStorage.setItem('fb_lang', lang);
document.documentElement.lang = currentLang;
document.querySelectorAll('[data-i18n]').forEach(el => {
el.textContent = t(el.getAttribute('data-i18n'));
});
document.querySelectorAll('[data-i18n-html]').forEach(el => {
el.innerHTML = t(el.getAttribute('data-i18n-html'));
});
document.querySelectorAll('[data-i18n-placeholder]').forEach(el => {
el.placeholder = t(el.getAttribute('data-i18n-placeholder'));
});
document.getElementById('langKo')?.classList.toggle('active', currentLang === 'ko');
document.getElementById('langEn')?.classList.toggle('active', currentLang === 'en');
const isMulti = typeof isMultiMode !== 'undefined' && isMultiMode;
document.getElementById('multiStatus').textContent = isMulti ? t('statusOn') : t('statusOff');
document.getElementById('uploadModeHint').textContent = isMulti ? t('uploadModeHintMulti') : t('uploadModeHintDefault');
const dropStrong = dropZone?.querySelector('p strong');
const dropRest = dropZone?.querySelector('p span');
if (dropStrong) dropStrong.textContent = t('clickWord');
if (dropRest) dropRest.textContent = t('uploadHintRest');
if (typeof renderFileList === 'function') renderFileList();
}
document.getElementById('langKo')?.addEventListener('click', () => setLang('ko'));
document.getElementById('langEn')?.addEventListener('click', () => setLang('en'));
window.addEventListener('DOMContentLoaded', () => {
setLang(currentLang);
cleanupStaleOPFSTemp();
});