Socket
Socket
Sign inDemoInstall

github.com/KyleBanks/XOREncryption

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/KyleBanks/XOREncryption


Version published

Readme

Source

XOR Encryption

Simple implementation of XOR Encryption/Decrypting in various languages, including:

  • C
  • C#
  • C++
  • Dart
  • F# by pawelizycki
  • Go
  • Groovy
  • Java (Android Compatible)
  • JavaScript (Node.js Compatible)
  • CoffeeScript
  • Kotlin
  • Objective-C
  • PHP
  • Python
  • Ruby
  • Swift
  • Visual Basic.NET

This implementation goes beyond the basic single-key model to use multiple keys in a particular sequence, making it that much more difficult to brute-force.

In these examples, I'm encrypting the same string with the same keys in order to keep consistency with the output, and to demonstrate that an encrypted string from a C program can be decrypted in a Java application, or any combination, so long as the keys remain the same.

For an in-depth explanation of the code, check out KyleWBanks.com.

FAQs

Last updated on 07 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc