kor4096
encoding hex, number to korean language 4096.
찁, 찂 is padding string
example
Using
default
import KorEncode from "kor-4096";
let plain = "0123456789asdf";
let kor = korEncode.encode(plain);
console.log(kor);
let hex = korEncode.encode(kor);
console.log(hex);
plain = "7a538344c200b87ed788809520bc82c4c8a9519235323f9b2a8572e2ef489966";
kor = korEncode.encode(plain);
console.log(kor);
hex = korEncode.encode(kor);
console.log(hex);
plain =
"cf90b67643c7b1a8930acfe64549370f207b54aabdcc2ce5e1173afac24458d96b37960e8fee639c9a51c76e37744d261e332fb5b8c3f543bd72a4fabd83ce7f";
kor = korEncode.encode(plain);
console.log(kor);
hex = korEncode.encode(kor);
console.log(hex);
Array
let plain = [1, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096];
let kor = korEncode.encodeArray(plain);
console.log(kor);
let hex = korEncode.decodeArray(kor);
console.log(hex);
let plain = ["1", "11", "111", "1111", "11111", "1111111", "1111111"];
let kor = korEncode.encodeArray(plain);
console.log(kor);
let hex = korEncode.decodeArray(kor);
console.log(hex);
Chainge key Size
let chain = new ChainHash(inputPassword, 224);
let chain = new ChainHash(inputPassword, 256);
let chain = new ChainHash(inputPassword, 384);
let chain = new ChainHash(inputPassword, 512);