Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed May 23, 2023
1 parent e22b097 commit a11eb01
Show file tree
Hide file tree
Showing 16 changed files with 286 additions and 183 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ import xor from "crypchar/xor";
## Usage
```js
const crypchar = require("crypchar");
crypchar.add("Hello World!", 5, "utf8"); // "Mjqqt%\twqi&"
crypchar.add("Hello World!", 5, "utf8"); // "Mjqqt%\\twqi&"
crypchar.subtract("Mjqqt%\\twqi&", 5, "utf8"); // "Hello World!"
crypchar.xor("Hello World!", 11, "utf8"); // "Cnggd+\dygo*"
crypchar.xor("Hello World!", 11, "utf8"); // "Cnggd+\\dygo*"
crypchar.xor("Cnggd+\\dygo*", 11, "utf8"); // "Hello World!"
crypchar.not("Hello World!"); // <Buffer b7 9a 93 93 90 df a8 90 8d 93 9b de>
crypchar.not(Buffer.of(183, 154, 147, 147, 144, 223, 168, 144, 141, 147, 155, 222), "utf8"); // "Hello World!"
crypchar.multiply("Hello World!", [1, 2]) // <Buffer 48 ca 6c d8 6f 40 57 de 72 d8 64 42>
crypchar.divide(Buffer.of(72, 202, 108, 216, 111, 64, 87, 222, 114, 216, 100, 66), [1, 2], "utf8"); // "Hello World!"
```

## Documentation
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crypchar",
"version": "1.1.1",
"version": "1.2.0",
"description": "Encryption and decryption of characters using arithmetic and bitwise operations.",
"main": "cjs/index.js",
"module": "esm/index.js",
Expand Down Expand Up @@ -61,13 +61,13 @@
"license": "MIT",
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/node": "^18.16.3",
"esbuild": "^0.17.18",
"@types/node": "^20.2.3",
"esbuild": "^0.17.19",
"mocha": "^10.2.0",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"typedoc": "^0.24.6",
"typedoc": "^0.24.7",
"typescript": "^5.0.4"
}
}
Loading

0 comments on commit a11eb01

Please sign in to comment.