AliRezaBeigy / XorCrypto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XorCrypto

Complete the source project methods

Help

  • Google
  • The result length is the same with the input

Algorithm:

  • r = (char)(i ^ k);
  • r: character of result
  • i: character of input parameter
  • k: character of key parameter

Output

The output should be as follows:

Hello -> GAQfHxg=
GAQfHxg= -> Hello
----------------------------------------
This is a test -> BAkaAFcGAUQxQQcWBBs=
BAkaAFcGAUQxQQcWBBs= -> This is a test
----------------------------------------
I want to encode me then decode me :D -> GUEEEhkbUhA/QRYdFAAWAXAMFlMDBxcKcAUWEBgLF0Q9BFNJMw==
GUEEEhkbUhA/QRYdFAAWAXAMFlMDBxcKcAUWEBgLF0Q9BFNJMw== -> I want to encode me then decode me :D

About


Languages

Language:Java 100.0%