Java String Descrypt decrypt(String s, int offset)

Here you can find the source of decrypt(String s, int offset)

Description

decrypt

License

Open Source License

Parameter

Parameter Description
s String to be decrypted
offset Integer containing value String is off original

Return

String returned to its original value

Declaration

public static String decrypt(String s, int offset) 

Method Source Code

//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;
    }
}

Related

  1. decrypt(String arg0)
  2. decrypt(String data, String key)
  3. decrypt(String inString)
  4. decrypt(String s)
  5. decrypt(String s)
  6. decrypt(String src)
  7. decrypt(String str)
  8. Decrypt(String str)
  9. decrypt(String str)