Here you can find the source of decrypt(int encrypted, int salt)
Parameter | Description |
---|---|
original | a parameter |
salt | a parameter |
public static int decrypt(int encrypted, int salt)
//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; } }