Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
7d1cda51
Commit
7d1cda51
authored
May 26, 2020
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pgp
parent
e720b6ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
perform.js
plugins/dt/dt-pgpcrypt/perform.js
+4
-6
No files found.
plugins/dt/dt-pgpcrypt/perform.js
View file @
7d1cda51
...
@@ -60,7 +60,7 @@ function perform_function(context,request,response){
...
@@ -60,7 +60,7 @@ function perform_function(context,request,response){
if
([
'decrypt'
,
'dec'
].
indexOf
(
req_function
)
>=
0
){
if
([
'decrypt'
,
'dec'
].
indexOf
(
req_function
)
>=
0
){
pgplib
.
decrypt
({
pgplib
.
decrypt
({
privatekey
:
req_privatekey
,
private
_
key
:
req_privatekey
,
passphrase
:
req_passphrase
,
passphrase
:
req_passphrase
,
armor_in
:
(
typeof
data
==
'string'
),
armor_in
:
(
typeof
data
==
'string'
),
data
:
data
data
:
data
...
@@ -72,14 +72,12 @@ function perform_function(context,request,response){
...
@@ -72,14 +72,12 @@ function perform_function(context,request,response){
dout
=
d
.
toString
(
'base64'
);
dout
=
d
.
toString
(
'base64'
);
}
}
ok_out
(
d
);
ok_out
(
d
);
})
}).
catch
(
e
=>
{
/*
.catch(e =>{
error_out
(
'decrypt error'
);
error_out
(
'decrypt error'
);
})
*/
})
}
else
if
([
'encrypt'
,
'enc'
].
indexOf
(
req_function
)
>=
0
){
}
else
if
([
'encrypt'
,
'enc'
].
indexOf
(
req_function
)
>=
0
){
pgplib
.
encrypt
({
pgplib
.
encrypt
({
publickey
:
req_publickey
,
public
_
key
:
req_publickey
,
armor_out
:
([
'armor'
,
'text'
].
indexOf
(
req_output
)
>=
0
),
armor_out
:
([
'armor'
,
'text'
].
indexOf
(
req_output
)
>=
0
),
data
:
data
data
:
data
}).
then
(
d
=>
{
}).
then
(
d
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment