小编arc*_*tas的帖子

如何在node.js上将文本转换为Base58?

我想将像“Hello World”这样的消息转换为 base58,然后能够使用 node.js 对其进行解码。Base-58 模块有以下解释,但我无法完全理解如何转换我的消息。

Base58.encode(a Buffer or Uint8Array) returns a String
Base58.decode(a String) returns a Buffer
Run Code Online (Sandbox Code Playgroud)

我想我需要先将消息转换为其他内容,然后再转换为 Base58。要解码 Base58 消息,再次需要转换为其他内容,然后从那里转换为文本,对吧?

javascript encryption encode decode node.js

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

decode ×1

encode ×1

encryption ×1

javascript ×1

node.js ×1