RFC 4648(基本[16,32,64])在Matlab中的实现 [英] RFC 4648 (Base[16,32,64]) Implementation in Matlab
本文介绍了RFC 4648(基本[16,32,64])在Matlab中的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有 RFC4648 的任何实现(以下简称Base16,Base32和Base64数据编码 )在Matlab?
Is there any implementation of RFC4648 ("The Base16, Base32, and Base64 Data Encodings") in Matlab?
推荐答案
在MATLAB,你可以很容易地使用嵌入式的 Java功能的。 MATLAB附带 Apache的共享codeC 库中可用的Java类路径。所以,你可以这样做:
In MATLAB you can easily use the embedded Java capabilities. MATLAB ships with the Apache Commons Codec library available on the Java classpath. So you can do:
str = 'http://stackoverflow.com/q/11659710/';
encoder = org.apache.commons.codec.binary.Base64();
result = char(encoder.encode(str-0))';
输出:
>> result
result =
aHR0cDovL3N0YWNrb3ZlcmZsb3cuY29tL3EvMTE2NTk3MTAv
这篇关于RFC 4648(基本[16,32,64])在Matlab中的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文