Here you can find the source of encrypt(int original, int salt)
Parameter | Description |
---|---|
original | a parameter |
salt | a parameter |
public static int encrypt(int original, int salt)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w .j a va2s.c om * encrypt some 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 encrypt(int original, int salt) { return original ^ salt; } }