BasE91 encoding & decoding

本文介绍了一种比Base64更高效的ASCII字符编码方法basE91,并提供了编码和解码字符串的具体实现。文章包含编码字符集详情及示例代码,适合对数据编码感兴趣的技术人员参考。

好久没更新了啊,我才不会说是因为我忘了密码又懒得重置,然后又犯了拖延症,抽空找回继续刷

BasE91http://base91.sourceforge.net/) is a method for encoding binary as ASCII characters. It is more efficient than Base64 and needs 91 characters to represent the encoded data.

The following ASCII charakters are used:

'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
'!#$%&()*+,./:;<=>?@[]^_`{|}~"'

Create two functions that encode strings to basE91 string and decodes the other way round.

b91encode('test') = 'fPNKd'
b91decode('fPNKd') = 'test'

b91decode('>OwJh>Io0Tv!8PE') = 'Hello World!'
b91encode('Hello World!') = '>OwJh>Io0Tv!8PE'

简述:就是实现一个basS91的编码和解析,暂时没解决,顺便贴一个base64的参考 

https://blog.youkuaiyun.com/qq_20545367/article/details/79538530 

@艾华生https://my.youkuaiyun.com/qq_20545367

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值