취업/PHP

[lib] 노드용 buffer 라이브러리를 client side buffer로 사용해보자.

카슈밀 2022. 1. 21. 09:47
반응형
   <script src="https://bundle.run/buffer@6.0.3"></script>
   
<script>
	const privateKey = buffer.Buffer.from(PRIVATE_KEY_1, "hex");
</script>

출처

ttps://stackoverflow.com/questions/56237161/how-can-i-use-node-js-buffer-library-in-client-side-javascript

 

How can I use node.js buffer library in client side javascript

I would like to use buffer library (in order handle binary data) in my website. here is my use case: const privateKey = Buffer.from('<User's private key here>', 'hex'); buffer works fine in...

stackoverflow.com

 

728x90