Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
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
0
Merge Requests
0
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
YZG
yzg-util
Commits
6f5ed441
Commit
6f5ed441
authored
4 years ago
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实体位置
parent
423c6429
master
1.0-SNAPSHOT
test
ver1.0
ver1.1
ver1.2
ver1.3
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
RsaHelper.java
.../src/main/java/com/yanzuoguang/util/helper/RsaHelper.java
+4
-2
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/RsaHelper.java
View file @
6f5ed441
...
@@ -186,7 +186,8 @@ public final class RsaHelper {
...
@@ -186,7 +186,8 @@ public final class RsaHelper {
* @throws Exception
* @throws Exception
*/
*/
private
static
String
encodeBase64
(
byte
[]
source
)
throws
Exception
{
private
static
String
encodeBase64
(
byte
[]
source
)
throws
Exception
{
return
new
String
(
Base64
.
getEncoder
().
encode
(
source
),
SystemContants
.
UTF8
);
byte
[]
to
=
Base64
.
getEncoder
().
encode
(
source
);
return
new
String
(
to
,
SystemContants
.
UTF8
);
}
}
/**
/**
...
@@ -197,6 +198,7 @@ public final class RsaHelper {
...
@@ -197,6 +198,7 @@ public final class RsaHelper {
* @throws Exception
* @throws Exception
*/
*/
private
static
byte
[]
decodeBase64
(
String
target
)
throws
Exception
{
private
static
byte
[]
decodeBase64
(
String
target
)
throws
Exception
{
return
Base64
.
getDecoder
().
decode
(
target
.
getBytes
(
SystemContants
.
UTF8
));
byte
[]
from
=
target
.
getBytes
(
SystemContants
.
UTF8
);
return
Base64
.
getDecoder
().
decode
(
from
);
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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