Skip to content

code4fukui/XOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XOR

  • a simple encryption ES module using exclusive or (XOR)
  • XORを使ったシンプルな暗号化ESモジュールです

Usage

import { XOR } from "https://code4fukui.github.io/XOR/XOR.js";

const org = "ABCDEFGあいうえお";
console.log("org", org);
const data = new TextEncoder().encode(org);
const pass = new Uint8Array([1, 3, 5]);
const enc = XOR.convert(data, pass);
console.log("convert", new TextDecoder().decode(enc));
const dec = XOR.convert(data, pass);
console.log("convert", new TextDecoder().decode(dec));

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published