UNPKG
@logismika/crypto
Version:
latest (0.5.0-a3)
0.5.0-a3
0.5.0-a2
0.5.0-a1
0.4.1
0.4.0
0.3.1
0.3.0
0.2.3
0.2.2
Crypto algorithms library
github.com/Logismika/crypto
Logismika/crypto
@logismika/crypto
/
build
/
esm
/
utils.js
3 lines
(2 loc)
•
156 B
JavaScript
View Raw
1
2
3
export
const
stringToByteArray
= (
value
) =>
new
TextEncoder
().
encode
(value);
export
const
stringFromByteArray
= (
bytes
) =>
new
TextDecoder
().
decode
(bytes);