Skip to content

PrivacyForge/bitphrase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ByteWorder.js

Encode and Decode Bytes to Meaningful Word

Encode

const encoded = encodeUint8ArrayToWord(
  new Uint8Array([2, 23, 43, 123, 2, 23, 42, 12, 34, 10, 98, 7])
);
console.log(encoded); // عاقبت مهر نر خدایی جهانبان تونیک تبرک

Decode

const encoded = "عاقبت مهر نر خدایی جهانبان تونیک تبرک";
const decoded = decodeWordToUint8Array(encoded);
console.log(decoded); // [2, 23, 43, 123, 2, 23, 42, 12, 34, 10, 98, 7]

About

Encode and Decode Bytes to Meaningful Word

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published