Here you can find the source of decrypt(String s, int offset)
Parameter | Description |
---|---|
s | String to be decrypted |
offset | Integer containing value String is off original |
public static String decrypt(String s, int offset)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w . j a va 2s. co m * * @param s String to be decrypted * @param offset Integer containing value String is off original * @return String returned to its original value * @deprecated */ public static String decrypt(String s, int offset) { String n = s; s = ""; int o = offset * n.length(); for (int i = 0; i < n.length(); i++) { char c = n.charAt(i); c -= o; s += c; } return s; } }