New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 1.0.1 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";
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc