我是靠谱客的博主 幸福板凳,这篇文章主要介绍你必须要知道的base64加解密方法base64 加密base64 解密,现在分享给大家,希望可以做个参考。

base64加解密

  • base64 加密
  • base64 解密

base64 加密

  1. 加密
function base64Encode( target : any){
	let Base64 =  require('js-base64').Base64
	if( isEmpty(target)){
		return ' '
	}
	return Base64.encode( target )
}

base64 解密

  1. 解密
function base64Decode( target : any){
	let Base64 =  require('js-base64').Base64
	if( isEmpty(target)){
		return ' '
	}
	return Base64.decode( target )
}

isEmpty方法

function isEmpty( target :any ) {
	return !target
}

最后

以上就是幸福板凳最近收集整理的关于你必须要知道的base64加解密方法base64 加密base64 解密的全部内容,更多相关你必须要知道的base64加解密方法base64内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(60)

评论列表共有 0 条评论

立即
投稿
返回
顶部