This repository was archived by the owner on Mar 16, 2023. It is now read-only.
File tree 6 files changed +15
-6
lines changed
6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
1
+ # 0.21b1 (2019-11-08)
2
+
3
+ * added length check to local decryption as has been done for local encryption
4
+
1
5
# 0.21b0 (2019-11-07)
2
6
3
7
* introduced ` router.php ` for local debugging
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- # Shared-Secrets v0.21b0
3
+ # Shared-Secrets v0.21b1
4
4
#
5
5
# Copyright (c) 2016-2019, SysEleven GmbH
6
6
# All rights reserved.
Original file line number Diff line number Diff line change 47
47
<link href="/resources/css/read.css?<?= $ cache_value ?> " integrity="sha256-wgpxEGDMqG2EJxicZqc40OJMPwN8rBAZTYLdGyagQGw=" rel="stylesheet" type="text/css" />
48
48
49
49
<script src="/resources/js/lib.js?<?= $ cache_value ?> " integrity="sha256-d6lWbau1r7bB+u7utpkOX6tLTXnbOPqD33NmIXHY19A=" type="text/javascript"></script>
50
- <script src="/resources/js/read.js?<?= $ cache_value ?> " integrity="sha256-BqgJySPsN6oROEdrmoXeZhxiy3cWbYNZVvhFqYi5B5E =" type="text/javascript"></script>
50
+ <script src="/resources/js/read.js?<?= $ cache_value ?> " integrity="sha256-0dlCa+2uL8Tgjq7VlZtajGikqq5BptgpEkQTc0xl1vU =" type="text/javascript"></script>
51
51
<script src="/resources/js/norepost.js?<?= $ cache_value ?> " integrity="sha256-SdShL5XtGY7DRT4OatFFRS1b3QdADS22I8eEP1GA/As=" type="text/javascript"></script>
52
52
53
53
<?php
Original file line number Diff line number Diff line change 39
39
<link href="/resources/css/share.css?<?= $ cache_value ?> " integrity="sha256-EYu1Dc10IDi0yUOyV55YWmCKWfVlBj1rTMk/AsbViKE=" rel="stylesheet" type="text/css" />
40
40
41
41
<script src="/resources/js/lib.js?<?= $ cache_value ?> " integrity="sha256-d6lWbau1r7bB+u7utpkOX6tLTXnbOPqD33NmIXHY19A=" type="text/javascript"></script>
42
- <script src="/resources/js/share.js?<?= $ cache_value ?> " integrity="sha256-jVvsQvz1rwhbs7Ddpihie31jsn/9byFRLI88NnGXzGM =" type="text/javascript"></script>
42
+ <script src="/resources/js/share.js?<?= $ cache_value ?> " integrity="sha256-sNJqhCLJH7s32SPq0o7P9LJAtxTUhvAOT1CBzfZLbac =" type="text/javascript"></script>
43
43
44
44
<?php
45
45
Original file line number Diff line number Diff line change 15
15
16
16
// action happening on local decryption
17
17
async function decrypt ( ) {
18
- var result = await decrypt_v00 ( document . getElementById ( "secret" ) . innerHTML ,
19
- document . getElementById ( "password" ) . value ) ;
18
+ var result = null ;
19
+
20
+ // check the length of the input
21
+ if ( ( 0 < document . getElementById ( "secret" ) . innerHTML . length ) &&
22
+ ( 0 < document . getElementById ( "password" ) . value . length ) ) {
23
+ result = await decrypt_v00 ( document . getElementById ( "secret" ) . innerHTML ,
24
+ document . getElementById ( "password" ) . value ) ;
25
+ }
20
26
21
27
if ( null != result ) {
22
28
document . getElementById ( "secret" ) . innerHTML = html_entities ( result ) ;
Original file line number Diff line number Diff line change 25
25
26
26
// action happening on local encryption
27
27
async function encrypt ( ) {
28
-
29
28
var result = null ;
30
29
31
30
// check the length of the input
You can’t perform that action at this time.
0 commit comments