app/src/main/java/io/antmedia/android/liveVideoBroadcaster/SignUpScreen.java
public static String generateHash(String password, String passwordSalt)
    {
        String pwConcat;
        char hashToChar;
        int ascii;

        pwConcat = password.concat(passwordSalt);

        // Create a new int array
        int[] asciiHash = new int[pwConcat.length()];

        // Converts string to char array
        char[] stringAsChars = pwConcat.toCharArray();

        // Converts hash to chars
        char[] hashAsChars = new char[pwConcat.length()];

        if(stringAsChars != null)
        {
            for(int charAt = 0; charAt < stringAsChars.length; charAt++)
            {
                ascii = stringAsChars[charAt];

                asciiHash[charAt] = ascii + 1;
            }
        }


        if(asciiHash != null)
        {

            for (int i = 0; i < asciiHash.length; i++)
            {
                hashToChar = (char) asciiHash[i];

                hashAsChars[i] = hashToChar;
            }
        }


        String passwordHash = new String(hashAsChars);

        return passwordHash;
    }
/**
     * Description: Generates a hashcode of a concatenation of the users entered
     * password and the password salt
     *
     * @param password user entered password as a string
     * @param passwordSalt randomly generated salt as a string
     * @return hashed password
     */
Generates a hashcode of a concatenation of the users entered
password and the password salt

@param password user entered password as a string
@param passwordSalt randomly generated salt as a string
@return hashed password
Generates a hashcode of a concatenation of the users entered password and the password salt @param password user entered password as a string @param passwordSalt randomly generated salt as a string @return hashed password
public static String generateHash(String password, String passwordSalt)
    {
        String pwConcat;
        char hashToChar;
        int ascii;
        pwConcat = password.concat(passwordSalt);
        int[] asciiHash = new int[pwConcat.length()];
        char[] stringAsChars = pwConcat.toCharArray();
        char[] hashAsChars = new char[pwConcat.length()];
        if(stringAsChars != null)
        {
            for(int charAt = 0; charAt < stringAsChars.length; charAt++)
            {
                ascii = stringAsChars[charAt];
                asciiHash[charAt] = ascii + 1;
            }
        }
        if(asciiHash != null)
        {
            for (int i = 0; i < asciiHash.length; i++)
            {
                hashToChar = (char) asciiHash[i];
                hashAsChars[i] = hashToChar;
            }
        }
        String passwordHash = new String(hashAsChars);
        return passwordHash;
    }
public static String generateHash ( String password , String passwordSalt ) { String pwConcat ; char hashToChar ; int ascii ; pwConcat = password . concat ( passwordSalt ) ; int [ ] asciiHash = new int [ pwConcat . length ( ) ] ; char [ ] stringAsChars = pwConcat . toCharArray ( ) ; char [ ] hashAsChars = new char [ pwConcat . length ( ) ] ; if ( stringAsChars != null ) { for ( int charAt = 0 ; charAt < stringAsChars . length ; charAt ++ ) { ascii = stringAsChars [ charAt ] ; asciiHash [ charAt ] = ascii + 1 ; } } if ( asciiHash != null ) { for ( int i = 0 ; i < asciiHash . length ; i ++ ) { hashToChar = ( char ) asciiHash [ i ] ; hashAsChars [ i ] = hashToChar ; } } String passwordHash = new String ( hashAsChars ) ; return passwordHash ; }
Description: Generates a hashcode of a concatenation of the users entered
 password and the password salt
Description : Generates a hashcode of a concatenation of the users entered password and the password salt
// Create a new int array // Converts string to char array // Converts hash to chars