🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cryptographyjs

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptographyjs - npm Package Compare versions

Comparing version

to
1.0.2

index.ts

2

package.json
{
"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";