How to encrypt base58 in js?

problem description

used to use base64 encryption, the encryption method is
let aa = new Buffer ("test"). ToString (" base64");
now some content needs to be encrypted with base58

the environmental background of the problems and what methods you have tried

the base58 encryption method is relatively unfamiliar, what is found on the Internet is the specific implementation of the principle and method, I would like to know if there is a relatively simple method of calling.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

expect to realize base58 encryption and decryption

Apr.22,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb1c34-237f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb1c34-237f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?