Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
夜猫逐梦
1024程序员开源挑战赛
提交
c09d7c97
1
1024程序员开源挑战赛
项目概览
夜猫逐梦
/
1024程序员开源挑战赛
与 Fork 源项目一致
Fork自
GitCode / 1024程序员开源挑战赛(10.23-11.14)
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
1
1024程序员开源挑战赛
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c09d7c97
编写于
4月 18, 2022
作者:
B
baiy
提交者:
ninecents
10月 23, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
96c5e6d2
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
142 addition
and
118 deletion
+142
-118
README.md
README.md
+2
-1
package-lock.json
package-lock.json
+116
-101
package.json
package.json
+1
-1
src/views/tool/hex2base64.vue
src/views/tool/hex2base64.vue
+23
-15
未找到文件。
README.md
浏览文件 @
c09d7c97
...
...
@@ -43,7 +43,7 @@ npm run build -adapter=[chrome|edge|utools|firefox|web]
| 功能 | 说明 |离线使用|
|--------------|-------------------------------------------------------------------------------------------------------------------------------|---|
| 哈希 |
`md5`
,
`sha1`
,
`sha256`
,
`sha512`
,
`sm3`
|√|
| 加密/解密 |
`AES`
,
`DES`
,
`RC4`
,
`Rabbit`
,
`TripleDes`
,
`sm2`
|√|
| 加密/解密 |
`AES`
,
`DES`
,
`RC4`
,
`Rabbit`
,
`TripleDes`
,
`sm2`
,
`sm4`
|√|
| BASE64编码 |
`加密`
,
`解密`
,
`支持文件`
|√|
| URL编码 |
`编码`
,
`解码`
|√|
| 时间戳 |
`双向转换`
,
`毫秒`
|√|
...
...
@@ -68,6 +68,7 @@ npm run build -adapter=[chrome|edge|utools|firefox|web]
| 变量名格式转换 |
`Var Name`
,
`var-name`
,
`VAR_NAME`
,
`VarName`
,
`varName`
,
`var_name`
,
`var name`
|√|
| jwt解码 |
`header`
,
`payload`
|√|
| Hex/String转换 |
`hex to string`
,
`string to hex`
,
`十六进制转字符串`
,
`字符串转十六进制`
|√|
| Hex/Base64转换 |
`hex to Base64`
,
`Base64 to hex`
|√|
| 文本处理 |
`大小写转换`
,
`中英文标点转换`
,
`简繁转换`
,
`替换`
,
`字符统计`
,
`行去重`
,
`添加行号`
,
`行排序`
,
`过滤行首尾不可见字符`
,
`过滤空行`
|√|
| html编码 | - |√|
| 原码/反码/补码 |
`生成`
|√|
...
...
package-lock.json
浏览文件 @
c09d7c97
此差异已折叠。
点击以展开。
package.json
浏览文件 @
c09d7c97
{
"name"
:
"c-tool"
,
"version"
:
"1.11.
1
"
,
"version"
:
"1.11.
2
"
,
"private"
:
true
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve --port 8081"
,
...
...
src/views/tool/hex2base64.vue
浏览文件 @
c09d7c97
...
...
@@ -19,6 +19,7 @@
import
CryptoJS
from
"
crypto-js
"
import
heightResize
from
"
./components/heightResize
"
;
import
autoHeightTextarea
from
"
./components/autoHeightTextarea
"
;
import
{
Base64
}
from
'
js-base64
'
export
default
{
components
:
{
...
...
@@ -31,22 +32,29 @@ export default {
methods
:
{
handle
(
type
)
{
if
(
this
.
current
.
input
)
{
switch
(
type
)
{
case
"
hex
"
:
this
.
current
.
output
=
CryptoJS
.
enc
.
Hex
.
stringify
(
CryptoJS
.
enc
.
Base64
.
parse
(
this
.
current
.
input
));
break
;
case
"
base64
"
:
this
.
current
.
output
=
CryptoJS
.
enc
.
Base64
.
stringify
(
CryptoJS
.
enc
.
Hex
.
parse
(
this
.
current
.
input
));
break
;
default
:
return
;
try
{
switch
(
type
)
{
case
"
hex
"
:
if
(
!
Base64
.
isValid
(
this
.
current
.
input
)){
throw
new
Error
(
"
input base64 string invalid
"
)
}
this
.
current
.
output
=
CryptoJS
.
enc
.
Hex
.
stringify
(
CryptoJS
.
enc
.
Base64
.
parse
(
this
.
current
.
input
));
break
;
case
"
base64
"
:
this
.
current
.
output
=
CryptoJS
.
enc
.
Base64
.
stringify
(
CryptoJS
.
enc
.
Hex
.
parse
(
this
.
current
.
input
));
break
;
default
:
return
;
}
if
(
this
.
current
.
isUppercase
&&
type
===
"
hex
"
)
{
this
.
current
.
output
=
this
.
current
.
output
.
toUpperCase
()
}
this
.
current
.
operation
=
type
;
this
.
$clipboardCopy
(
this
.
current
.
output
);
this
.
$saveToolData
(
this
.
current
);
}
catch
(
e
)
{
this
.
$Message
.
error
(
e
.
message
)
}
if
(
this
.
current
.
isUppercase
&&
type
===
"
hex
"
)
{
this
.
current
.
output
=
this
.
current
.
output
.
toUpperCase
()
}
this
.
current
.
operation
=
type
;
this
.
$clipboardCopy
(
this
.
current
.
output
);
this
.
$saveToolData
(
this
.
current
);
}
},
resize
(
height
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录