Java String Encrypt encryptString(String str)

Here you can find the source of encryptString(String str)

Description

encrypt String

License

Open Source License

Declaration

public static String encryptString(String str) 

Method Source Code

//package com.java2s;

public class Main {
    static final int key = 0xF3;

    public static String encryptString(String str) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < str.length(); i++) {
            int c = str.charAt(i);
            sb.append(Integer.toHexString(c ^ key)).append(" ");
        }/*from  w  w  w  .jav a 2  s . c o  m*/
        return sb.toString();
    }
}

Related

  1. encryptPlayerChat(byte[] is, int i_25_, int i_26_, int i_27_, byte[] is_28_)
  2. encryptPwd(String src)
  3. encryptStrBuff(byte[] resultBytes)
  4. encryptString(final String cadena)
  5. encryptString(String str)
  6. encryptURID(long registrationId)
  7. encryptURL(String url)