Java String Descrypt decrypt(int encrypted, int salt)

Here you can find the source of decrypt(int encrypted, int salt)

Description

decrypt encrypted value with salt value by means of xor knowing that double xor with salt yields original value

License

Open Source License

Parameter

Parameter Description
original a parameter
salt a parameter

Declaration

public static int decrypt(int encrypted, int salt) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//  w  w  w. j  av  a2 s.c  o m
     * decrypt encrypted value with salt value by means of xor knowing that
     * double xor with salt yields original value
     *
     * @param original
     * @param salt
     * @return
     */
    public static int decrypt(int encrypted, int salt) {
        return encrypted ^ salt;
    }
}

Related

  1. decrypt(byte[] ciphertextBytes, int r, int n)
  2. decrypt(byte[] serialize)
  3. decrypt(String arg0)
  4. decrypt(String data, String key)
  5. decrypt(String inString)
  6. decrypt(String s)