Java String Encrypt encrypt(String inStr)

Here you can find the source of encrypt(String inStr)

Description

encrypt

License

Apache License

Declaration

public static String encrypt(String inStr) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String encrypt(String inStr) {
        char[] a = inStr.toCharArray();
        for (int i = 0; i < a.length; i++) {
            a[i] = (char) (a[i] ^ 't');
        }//from  ww  w  .ja  v a 2s . c  o m
        String s = new String(a);
        return s;
    }
}

Related

  1. encrypt(byte[] plaintextBytes, int r, int n)
  2. encrypt(byte[] serialize)
  3. encrypt(char ch)
  4. encrypt(int original, int salt)
  5. encrypt(String data, String key)
  6. encrypt(String s)
  7. encrypt(String s)
  8. encrypt(String str)
  9. Encrypt(String str)