cryptographyjs
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "cryptographyjs", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,3 +0,2 @@ | ||
import { Cypher } from './helpers/cipher'; | ||
import { Alphabet } from './helpers/alphabet'; | ||
import { Cypher, Alphabet } from './helpers'; | ||
@@ -32,3 +31,3 @@ class CaesarCipher implements Cypher { | ||
private encryptStep(letter: string, key: number) { | ||
encryptStep(letter: string, key: number) { | ||
const index = this._alphabet.indexOf(letter); | ||
@@ -39,3 +38,3 @@ const newIndex = (index + key) % this._alphabet.length; | ||
private decryptStep(letter: string, key: number) { | ||
decryptStep(letter: string, key: number) { | ||
const index = this._alphabet.indexOf(letter); | ||
@@ -42,0 +41,0 @@ let newIndex = (index - key) % this._alphabet.length; |
export * from "./alphabet"; | ||
export * from "./cipher"; | ||
export * from "./cipher"; | ||
export * from "./random"; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11963
12
233
0