1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > Base64 Unicode URL编解码加解密

Base64 Unicode URL编解码加解密

时间:2021-02-13 21:21:38

相关推荐

Base64 Unicode URL编解码加解密

由IFTC(工作室链接:/work_shop/10892)制作的编解码加解密的APP

下载链接:/434/CEA1FD7277ED400893A6C25A49636DB0/编解码加解密.apk

使用方法:

共支持3种编解码的加解密

示例:

Base64:
Unicode:
URL:

注:仅支持Android平台

声明:本APP由Coco(链接:/home/)制作

内置自定义控件js代码:

const types = {isInvisibleWidget: true,type: "BASE_WIDGET",icon: "https://waddle.coco-/static/img/logo/logo-white.svg",title: "Base编解码",version: "1.0.0",isGlobalWidget: true,properties: [],methods: [],events: [],};class Widget extends InvisibleWidget {constructor(props) {super(props);}}// 放置一个方法积木,返回值字符串types['methods'].push({key: 'Base',label: 'Base解编码',params: [ // 放置一个输入参数,用于用户输入{key: 'text',label: '解/编码内容',valueType: 'string',defaultValue: '书写内容',},// 放置一个下拉参数,检查模式{key: 'mode',label: '模式',valueType: 'string',dropdown: [{ label: '编码', value: '编码', },{ label: '解码', value: '解码', },],},],valueType: 'string',})Widget.prototype.Base = function (text,mode,) {// 检查模式,取参数(mode)的值if (mode == '编码') {// 用户选择了“编码”模式// 取参数(text)的值进行编码并返回// 使用BASE编码并返回return (btoa(encodeURI(text)));}if (mode == '解码') {// 用户选择了“解码”模式// 取参数(text)的值进行编码并返回// 使用BASE解码并返回return (decodeURI(atob(text)));}}exports.types = types;exports.widget = Widget;

const types = {isInvisibleWidget: true,type: "URL_WIDGET",icon: "https://waddle.coco-/static/img/logo/logo-white.svg",title: "URL编解码",version: "1.0.0",isGlobalWidget: true,properties: [],methods: [],events: [],};class Widget extends InvisibleWidget {constructor(props) {super(props);}}// 放置一个方法积木,返回值字符串types['methods'].push({key: 'Base',label: 'URL解编码',params: [ // 放置一个输入参数,用于用户输入{key: 'text',label: '解/编码内容',valueType: 'string',defaultValue: '书写内容',},// 放置一个下拉参数,检查模式{key: 'mode',label: '模式',valueType: 'string',dropdown: [{ label: '编码', value: '编码', },{ label: '解码', value: '解码', },],},],valueType: 'string',})Widget.prototype.Base = function (text,mode,) {// 检查模式,取参数(mode)的值if (mode == '编码') {// 用户选择了“编码”模式// 取参数(text)的值进行编码并返回// 使用URL编码并返回return (encodeURI(text));}if (mode == '解码') {// 用户选择了“解码”模式// 取参数(text)的值进行编码并返回// 使用URL解码并返回return (decodeURI(text));}}exports.types = types;exports.widget = Widget;

const types = {isInvisibleWidget: true,type: "UNICODE_WIDGET",icon: "https://waddle.coco-/static/img/logo/logo-white.svg",title: "Unicode编解码",version: "1.0.0",isGlobalWidget: true,properties: [],methods: [],events: [],};class Widget extends InvisibleWidget {constructor(props) {super(props);}}// 放置一个方法积木,返回值字符串types['methods'].push({key: 'Base',label: 'Unicode解编码',params: [ // 放置一个输入参数,用于用户输入{key: 'text',label: '解/编码内容',valueType: 'string',defaultValue: '书写内容',},// 放置一个下拉参数,检查模式{key: 'mode',label: '模式',valueType: 'string',dropdown: [{ label: '编码', value: '编码', },{ label: '解码', value: '解码', },],},],valueType: 'string',})Widget.prototype.Base = function (text,mode,) {// 检查模式,取参数(mode)的值if (mode == '编码') {// 用户选择了“编码”模式// 取参数(text)的值进行编码并返回// 使用Unicode编码并返回return (escape(text));}if (mode == '解码') {// 用户选择了“解码”模式// 取参数(text)的值进行编码并返回// 使用Unicode解码并返回return (unescape(text));}}exports.types = types;exports.widget = Widget;

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。