forked from ramuta/pgp
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
652 lines (584 loc) · 47.7 KB
/
index.html
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
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Set charset to UTF-8 -->
<meta charset="utf-8">
<div class="title">
<title>PGP Suite</title>
</div>
<meta name="description" content="A simple and easy to use client-side PGP system.">
<meta name="author" content="Matej Ramuta">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="index_files/css/bootstrap.css" media="screen">
<link rel="stylesheet" type="text/css" href="index_files/css/custom.css" media="screen">
<script type="text/javascript" src="index_files/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="index_files/js/bootstrap.min.js"></script>
<script type="text/javascript" src="index_files/js/kbpgp.js"></script>
<script type="text/javascript" src="index_files/js/FileSaver.js"></script>
<script type="text/javascript" src="index_files/js/pgpkeygen.js"></script>
<!--[if IE 9]>
<script type="text/javascript" src="index_files/js/placeholder.js"></script>
<![endif]-->
<!-- Main script -->
<script type="text/javascript" src="index_files/js/main.js"></script>
<style>.cip-genpw-icon.cip-icon-key-small {background-image: url(index_files/fonts/key_16x16.png); }
.cip-genpw-icon.cip-icon-key-big {background-image: url(index_files/fonts/key_24x24.png); }
</style></head>
<body>
<div id="filename_temp" style="display:none;" title="This is temp div for saving here a file name if file was been loaded by input.">filename.txt</div>
<!--status notification-->
<div class="hidden">
<div class="alert alert-success fade in" id="vrSuccess">
<button aria-hidden="true" class="close" data-dismiss="alert" type="button">×</button><span id="vrAddrLabel"></span>
</div>
<div class="alert alert-danger fade in" id="vrError">
<button aria-hidden="true" class="close" data-dismiss="alert" type="button">×</button><span id="vrAddrLabel"></span>
</div>
<div class="alert alert-warning fade in" id="vrWarning">
<button aria-hidden="true" class="close" data-dismiss="alert" type="button">×</button><span id="vrAddrLabel"></span>
</div>
</div>
<div class="container">
<div class="row content">
<div class="col-md-12">
<div class="page-header">
<h1 class="title">PGP Suite</h1>
A simple and easy to use client-side PGP system
</div>
<div class="tabbable">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#generator" aria-controls="generator" role="tab" data-toggle="tab">Generate PGP Keys</a></li>
<li role="presentation"><a href="#sign" aria-controls="sign" role="tab" data-toggle="tab">Sign</a></li>
<li role="presentation"><a href="#verify" aria-controls="verify" role="tab" data-toggle="tab">Verify</a></li>
<li role="presentation"><a href="#signencrypt" aria-controls="sign" role="tab" data-toggle="tab">(Sign+)Encrypt</a></li>
<li role="presentation"><a href="#decrypt" aria-controls="decrypt" role="tab" data-toggle="tab">Decrypt(+Verify)</a></li>
<li role="presentation"><a href="#faq" aria-controls="faq" role="tab" data-toggle="tab">FAQ</a></li>
<li role="presentation"><a href="#about" aria-controls="about" role="tab" data-toggle="tab">About</a></li>
<!--
<li role="presentation"><a href="#guide" aria-controls="about" role="tab" data-toggle="tab">Giude</a></li>
-->
</ul>
<!-- Tab panes -->
<div class="tab-content">
<!-- Key gen -->
<div role="tabpanel" class="tab-pane active" id="generator">
<div class="row generator">
<div class="col-md-5">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Options</h3>
</div>
<div class="panel-body">
<form action="" name="keygen" id="keygen" method="post">
<div class="form-group">
<label class="sr-only" for="name">Your Name</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
<input class="form-control" name="name" placeholder="Your Name" id="name" title="" required="" data-original-title="Enter your name" data-cip-id="name" type="text">
<div class="input-group-addon">Required</div>
</div>
</div>
<div class="form-group">
<label class="sr-only" for="email">Email</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span></div>
<input class="form-control" name="email" placeholder="[email protected]" id="email" title="" required="" data-original-title="Enter a valid email address" data-cip-id="email" type="email">
<div class="input-group-addon">Required</div>
</div>
<span id="helpBlock" class="help-block"><a href="#" data-toggle="popover" title="" data-content="Your email address will be included as public information in your public PGP key, so your public key can be easily imported by third-party PGP software. If you do not supply your email address, your PGP decryption software may be unable to link your email address to your public PGP key, and therefore unable to automatically encrypt/decrypt email messages. As a result, you will have to manually decrypt messages each time you receive a PGP-encrypted message." data-original-title="Email address">Email address: Why it is required?</a></span>
</div>
<div class="form-group">
<label class="sr-only" for="comments">Optional Comment</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span></div>
<input class="form-control" name="comments" placeholder="Optional comments" id="comments" title="" data-original-title="Enter any optional comment" data-cip-id="comments" type="text">
</div>
</div>
<div class="form-group">
<label class="sr-only" for="algorithm">Algorithm</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span></div>
<select class="form-control" name="algorithm" id="algorithm" title="" required="" data-original-title="Choose an encryption algorithm" data-cip-id="cIPJQ342845639">
<option value="" disabled="disabled" selected="selected" class="disabled">Algorithm</option>
<option value="rsa">RSA (Recommended)</option>
<option value="ecc">ECC (Elliptic Curve Cryptography)</option>
</select>
<div class="input-group-addon">Required</div>
</div>
</div>
<div class="form-group">
<label class="sr-only" for="bitlength">Bit Length</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-signal" aria-hidden="true"></span></div>
<select class="form-control" name="bitlength" id="bitlength" title="" required="" disabled="disabled" data-original-title="Select a key size" data-cip-id="cIPJQ342845640">
<option value="" class="disabled" selected="selected">Key size</option>
</select>
<div class="input-group-addon">Required</div>
</div>
</div>
<div class="form-group">
<label class="sr-only" for="expire">Expires</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-hourglass" aria-hidden="true"></span></div>
<select name="expire" id="expire" class="form-control" title="" required="" data-original-title="Expiration of your subkeys" data-cip-id="cIPJQ342845641">
<option value="" disabled="disabled" selected="selected" class="disabled">Expires</option>
<option value="0">Never</option>
<option value="1">1 year</option>
<option value="2">2 years</option>
<option value="4">4 years</option>
<option value="8">8 years</option>
</select>
<div class="input-group-addon">Required</div>
</div>
</div>
<div class="form-group">
<label class="sr-only" for="passphrase">Passphrase</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-text-background" aria-hidden="true"></span></div>
<input class="form-control" name="passphrase" placeholder="Passphrase" id="passphrase" pattern=".{5,}" title="" required="" data-original-title="Enter a passphrase; at least 5 characters" data-cip-id="passphrase" type="password">
<div class="input-group-addon">Required</div>
</div>
<span id="helpBlock" class="help-block"><a href="#" data-toggle="popover" title="" data-content="Passphrase is a like a password to protect your private PGP key. This password offers an extra layer of protection in case someone manage to steal your public PGP key. Please pick a password you will remember, because if you forget this password, there is no way to recover your password and no way for you to decrypt PGP messages sent to you!" data-original-title="Passphrase">Passphrase: What is this?</a></span>
</div>
<input value="Generate keys" id="generate_keys_btn" class="btn btn-primary btn-lg btn-block send" name="send" type="submit">
<a href="https://thechiefmeat.github.io/pgp" id="start_again_btn" class="btn btn-link btn-block hide">Click here to regenerate another pair of key</a>
</form>
</div>
</div>
</div>
<div class="col-md-7">
<input name="key_short_id" id="key_short_id" value="" type="hidden">
<input name="btn_update_ts" id="btn_update_ts" value="0" type="hidden">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Public Key</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" rows="7" name="pubkey" placeholder="Your public key will be generated here." id="pubkey" readonly="readonly"></textarea>
<span id="helpBlock" class="help-block"><a href="#download_pub_key" class="btn btn-danger download disabled" title="This button will be enabled after you generate your key pair." name="download_pub_key" id="download_pub_key"><span class="glyphicon glyphicon-save" aria-hidden="true"></span> Download public key (.ASC file)</a> <a href="#" class="btn btn-link" data-toggle="popover" title="" data-content="You can put this key on your website or at the bottom signature of your email messages. Anyone wishing to contact you in private will have your public PGP key to send you encrypted messages. This file contain the key in text format and can be opened as text." data-original-title="Public key">Learn More</a>
</span>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Private Key</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" rows="7" name="privkey" placeholder="Your private key will be generated here." id="privkey" readonly="readonly"></textarea>
<span id="helpBlock" class="help-block"><a href="#download_priv_key" class="btn btn-danger download disabled" title="This button will be enabled after you generate your key pair." name="download_priv_key" id="download_priv_key"><span class="glyphicon glyphicon-save" aria-hidden="true"></span> Download private key (.ASC file)</a> <a href="#" class="btn btn-link" data-toggle="popover" title="" data-content="Save your private PGP key in a file on your computer and keep it as confidential as possible. You will need it to decrypt PGP messages sent to you using your public PGP key. This file contain the key in text format and can be opened as text." data-original-title="Private key">Learn More</a>
</span>
</div>
</div>
</div>
</div>
</div>
<!-- End Key gen -->
<!-- Sign message -->
<div role="tabpanel" class="tab-pane" id="sign">
<div class="row generator">
<div class="col-md-5">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Your Private Key</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" id="sign-private-key" rows="7" placeholder="Paste your private key here (ECC or RSA keys)." title="ECC and RSA algorithms working both for sign and verify. You can use ECC keys here."></textarea>
<input type='file' onchange='openFile(event, "sign-private-key")'>
<br>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-text-background" aria-hidden="true"></span></div>
<input class="form-control" name="sign-passphrase" placeholder="Passphrase for private key" id="sign-passphrase" pattern=".{5,}" title="Enter your private key passphrase" type="password">
</div>
</div>
</div>
</div>
<div class="col-md-7">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Your message</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" rows="7" id="sign-plain-text" placeholder="Write your message here."></textarea>
<input id="sign_src" type='file' onchange='openFile(event, "sign-plain-text")'><br>
</div>
</div>
<button class="btn btn-primary" id="sign-button">Sign the message</button>
<br>
<br>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Signed message</h3>
</div>
<div id="vrAlert_signed"></div>
<div class="panel-body">
<textarea class="form-control message" rows="7" id="signed-text" placeholder="Here you'll see the signed message." readonly="readonly"></textarea>
<br>
<a id="download-signed-text" style="display:none;" href="javascript:void(0);" title="Download signed text.">
<button>Download signed message</button>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- end Sign message -->
<!-- Verify message -->
<div role="tabpanel" class="tab-pane" id="verify">
<div class="row generator">
<div class="col-md-5">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Signer's Public Key</h3>
</div>
<div class="panel-body" title="Sign by private key, verify by public key. ECC keys working too.">
<textarea class="form-control message" id="Signer-public-key" rows="7" placeholder="Paste receiver's public key here."></textarea>
<input type='file' onchange='openFile(event, "Signer-public-key")'><br>
</div>
</div>
</div>
<div class="col-md-7">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Your message</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" rows="7" id="Unverified-plain-text" placeholder="Write your message here."></textarea>
<input type='file' onchange='openFile(event, "Unverified-plain-text")'><br>
</div>
</div>
<button class="btn btn-primary" id="verify-signature" title="Message -> to hash, then verify fingerprint from signed hash.">Verify signature</button>
<br>
<br>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Raw message and status</h3>
</div>
<div id="vrAlert"></div>
<div class="panel-body">
<textarea class="form-control message" rows="7" id="pure-text" placeholder="Here you'll see the raw message, if this signed and will be verified." readonly=""></textarea>
<br>
<a id="download_verified_as_binary" style="display:none; float: right" href="javascript:void(0);"
title="If in textarea base64 encoded file content - you can download this as binary RAW-data.">
Download as binary
</a>
<a id="download-pure-text" style="display:none;" href="javascript:void(0);" title="Download pure text">
<button>Download pure message</button>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- end Verify message -->
<!-- Sign+Encrypt message -->
<div role="tabpanel" class="tab-pane" id="signencrypt">
<div class="row generator">
<h4><center>Only pub for simply encryption, priv + pub for sign + encrypt.</center></h4><br>
<div class="col-md-5">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Reсeiver's Public Key</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" id="signencrypt-receivers-public-key" rows="7" placeholder="Paste the public key here. RSA only." title="Need for encryption. Only RSA. ECC encryption not working now..."></textarea>
<input type='file' onchange='openFile(event, "signencrypt-receivers-public-key")'><br>
<br>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Signer's Private Key (signing)</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" id="signencrypt-private-key" rows="7" placeholder="Paste the private key here. This can be ECC key." title="If private key not specified will be encryption without signature."></textarea>
<input type='file' onchange='openFile(event, "signencrypt-private-key")'><br>
<br>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-text-background" aria-hidden="true"></span></div>
<input class="form-control" name="sign-passphrase" placeholder="Passphrase for private key" id="signencrypt-passphrase" pattern=".{5,}" title="Enter your private key passphrase" type="password">
</div>
</div>
</div>
</div>
<div class="col-md-7">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Your message</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" rows="7" id="signencrypt-plain-text" placeholder="Write your message here."></textarea>
<input type='file' onchange='openFile(event, "signencrypt-plain-text")'><br>
</div>
</div>
<button class="btn btn-primary" id="signencrypt-button" title="If private key not specified - just encryption by public key.">(Sign and) Encrypt the message</button>
<br>
<br>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Signed and encrypted message</h3>
</div>
<div id="vrAlert3"></div>
<div class="panel-body">
<textarea class="form-control message" style="display: none;" rows="7" id="encrypted-text" placeholder="this is hidden textarea to copy from here an encrypted text" readonly="readonly"></textarea>
<textarea class="form-control message" rows="7" id="signencrypt-text" placeholder="Here you'll see the signed and encrypted message." readonly="readonly"></textarea>
<br>
<a id="download-signencrypt-text" style="display:none;" href="javascript:void(0);" title="Download pure text">
<button>Download encrypted message</button>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- end Sign+Encrypt message -->
<!-- Decrypt message (and verify signature, if signed)-->
<div role="tabpanel" class="tab-pane" id="decrypt">
<h4><center>Only priv for simply decryption, priv + pub for decrypt & verify signature.</center></h4><br>
<div class="row generator">
<div class="col-md-5">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Receiver's Private Key (decryption)</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" id="decryption-private-key" rows="7" placeholder="Paste the private key here to decrypt. RSA key only."
title="If you want to check signature only, without decrypt.
Paste here some another private key and signer's pub in next field.
Or paste here priv, which correspoding the signer's pub, without filling next field."></textarea>
<input type='file' onchange='openFile(event, "decryption-private-key")'><br>
<br>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-text-background" aria-hidden="true"></span></div>
<input class="form-control" name="decryption-passphrase" placeholder="Passphrase for private key" id="decryption-passphrase" pattern=".{5,}" title="Enter your private key passphrase" type="password">
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Signer's Public Key</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" id="signer_public_key" rows="7" placeholder="Paste the signer's public key here, if the message is signed. This can be ECC key." title="Or leave this field empty, if message is without signature."></textarea>
<input type='file' onchange='openFile(event, "signer_public_key")'><br>
<br>
</div>
</div>
</div>
<div class="col-md-7">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Encrypted message</h3>
</div>
<div class="panel-body">
<textarea class="form-control message" rows="7" id="decryption-encrypted-text" placeholder="Enter the encrypted message here."
title="Here can be signed but not encrypted message,
if private key, corresponing with PUBLIC - specified.
But will be better to use 'virify'-tab to check signature."></textarea>
<input type='file' onchange='openFile(event, "decryption-encrypted-text")'><br>
</div>
</div>
<!--Here you can see the multistring commentary-->
<button class="btn btn-warning" id="decryption-button" title="If private key not specified, or if message don't have signature,
this will not be verified successfully.">Decrypt the message (and verify signature)</button>
<br>
<br>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Decrypted message</h3>
</div>
<div class="panel-body">
<div id="vrAlert2"></div>
<textarea class="form-control message" rows="7" id="decryption-decrypted-text" placeholder="Here you'll see the decrypted message." readonly="readonly"></textarea>
<br>
<a id="download_decrypt_verify_as_binary" style="display:none; float: right" href="javascript:void(0);"
title="If in textarea base64 encoded file content - you can download this as binary RAW-data.">
Download as binary
</a> <a id="download-decrypted-text" style="display:none;" href="javascript:void(0);" title="Download pure text">
<button>Download decrypted text.</button>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- end Decrypt message -->
<!-- GUIDE -->
<div role="tabpanel" class="tab-pane" id="guide">
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
A guide to using PGP
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
</div>
</div>
</div>
</div>
</div>
<!-- END GUIDE -->
<!-- FAQ -->
<div role="tabpanel" class="tab-pane" id="faq">
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Is it safe for me to generate my PGP keys through your website?
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
Yes, it is as safe as
generating your keys using a local application. The key generation on
this website is done client-side only. This means the key pairs are
generated entirely in your web browser and they never leave your
computer. This website never sees any key related data or the key
itself.
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="true" aria-controls="collapseTwo">
Can you tell me more about the keys that the program generates?
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
Sure. For starters, it
enforces using a passphrase with each key generated. This ensures some
level of protection if your key is ever stolen. It also automatically
generates two subkeys for you, one for signing and the other for
encryption. You can use your subkeys to sign and encrypt data and keep
your private key safe. The bit length of generated subkeys will be
identical to the length you specified for the primary key. The primary
key it generates for you never expires. You can, however, set the
expiration date on the generated subkeys using the 'Expire' option in
the key generation form.
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="true" aria-controls="collapseThree">
What is Elliptic Curve Cryptography?
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
Elliptic Curve Cryptography
(ECC) is an approach to public-key cryptography based on the algebraic
structure of elliptic curves over finite fields. One of the main
benefits in comparison with non-ECC cryptography (with plain Galois
fields as a basis) is the same level of security provided by keys of
smaller size. For example, a 256-bit ECC public key should provide
comparable security to a 3072-bit RSA public key. ECC is still not
widely supported in many PGP client applications so I advise that you
generate ECC keys only if you know what you're doing. You can read more
about it at <a href="http://tools.ietf.org/html/rfc6637">RFC 6637</a>.
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingFive">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFive" aria-expanded="true" aria-controls="collapseFive">
Why does my web browser or computer slow down when I'm generating keys?
</a>
</h4>
</div>
<div id="collapseFive" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingFive">
<div class="panel-body">
PGP key generation is a
resource intensive process. As a result, your may experience increased
CPU and memory usage on your device, which can result in performance
issues. The performance impact depends on the hardware capabilities of
your device.
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingSix">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="true" aria-controls="collapseSix">
I already possess a PGP key, but it doesn't work with PGP Suite?
</a>
</h4>
</div>
<div id="collapseSix" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingSix">
<div class="panel-body">
For PGP keys to work with PGP Suite, they require SSH Authentication so PGP Suite can then use them, this is
usually done when the key is generated.
PGP Suite automatically adds SSH Authentication to generated
PGP Suite keys.
</div>
</div>
</div>
</div>
</div>
<!-- end FAQ -->
<!-- About -->
<div role="tabpanel" class="tab-pane" id="about">
<blockquote>PGP Suite is a data encryption and decryption computer program that provides cryptographic privacy and authentication for data communication. PGP Suite supports both message and file signing and encryption.
<br></br>
PGP is often used for signing, encrypting, and decrypting texts, e-mails, files,
directories, and whole disk partitions and to increase the security of e-mail
communications. It was created by Phil Zimmermann in 1991. PGP and similar
software follow the OpenPGP standard (RFC 4880) for encrypting and decrypting
data. <em>Source: <a href="https://en.wikipedia.org/wiki/Pretty_Good_Privacy" target="_blank">
Wikipedia</a></em>
</blockquote>
<p>
This site only provides a simple and easy to use tool for people to generate PGP keys
with. Today, the common methods for generating keys still involve going to a command
prompt of a Linux/Unix machine and using the GPG utility, or installing a PGP compatible
application on your desktop. I wanted to provide an easier way to generate keys. None of
this would be possible without the awesome Open Source software I'm utilizing. I'm
using <a href="https://keybase.io/">KeyBase's</a> awesome JavaScript implementation of
PGP (<a href="https://github.com/keybase/kbpgp">kbpgp</a>). For file saving capabilities
I am utilizing <a href="https://github.com/eligrey">Eli Grey's</a> wonderful
<a href="https://github.com/eligrey/FileSaver.js/">FileSaver.js</a> interface.
</p>
<p>
This project is a fork of Heiswayi Nrird's PGP Suite. Matej Ramuta forked it
and added message encryption and decryption.<br>
TheChiefMeat added sign only mode, sign+encrypt mode as well as support for 8192 RSA keys.<br>
username1565 Added PGP key verification, file selection as well as program icons,
file uploading and downloading for textareas, notify message, and base64 encoding for files.
</p>
<p>
This site is Open Source and the source code are available
on GitHub:
</p>
<ul>
<li>Original: <a href="https://github.com/heiswayi/pgp">Heiswayi</a></li>
<li>Fork: <a href="https://github.com/ramuta/pgp">Ramuta</a></li>
<li>Fork: <a href="https://github.com/TheChiefMeat/pgp">TheChiefMeat</a></li>
</ul>
<p>
You can find an offline version <a href="https://github.com/TheChiefMeat/pgp/releases/latest">here, maintained by TheChiefMeat.</a></p>
<p>
If you have any inquiry or problem, you may create an issue
<a href="https://github.com/heiswayi/pgp/issues">here (heiswayi)</a> or
<a href="https://github.com/ramuta/pgp/issues">here (ramuta)</a>.
</p>
</div>
<!-- end About -->
</div>
</div>
</div>
</div>
</div>
<div class="kphc cip-genpw-icon cip-icon-key-big" style="z-index: 3; top: 579.2px; left: 672.317px;"></div><div id="kphc-pw-dialog" class="kphc"><div style="display: none;" tabindex="-1" role="dialog" class="ui-dialog ui-corner-all ui-widget ui-widget-content ui-front ui-draggable" aria-describedby="cip-genpw-dialog" aria-labelledby="ui-id-1"><div class="ui-dialog-titlebar ui-corner-all ui-widget-header ui-helper-clearfix ui-draggable-handle"><span id="ui-id-1" class="ui-dialog-title">Password Generator</span><button type="button" class="ui-button ui-corner-all ui-widget ui-button-icon-only ui-dialog-titlebar-close" title="×"><span class="ui-button-icon ui-icon ui-icon-closethick"></span><span class="ui-button-icon-space"> </span>×</button></div><div id="cip-genpw-dialog" class="ui-dialog-content ui-widget-content"><div class="cip-genpw-clearfix"><button id="cip-genpw-btn-generate" class="b2c-btn b2c-btn-primary b2c-btn-small" style="float: left;">Generate</button><button id="cip-genpw-btn-clipboard" class="b2c-btn b2c-btn-small" style="float: right;">Copy to clipboard</button></div><div class="b2c-input-append cip-genpw-password-frame"><input id="cip-genpw-textfield-password" class="cip-genpw-textfield" type="text"><span class="b2c-add-on" id="cip-genpw-quality">123 Bits</span></div><label class="cip-genpw-label"><input id="cip-genpw-checkbox-next-field" class="cip-genpw-checkbox" type="checkbox"> also fill in the next password-field</label><button id="cip-genpw-btn-fillin" class="b2c-btn b2c-btn-small">Fill in & copy to clipboard</button></div></div></div></body></html>