Code example for PBEParameterSpec

0
    		break; 
    	case EncryptionStrong:
    		algorithm=algorithmStrong;
    		break; 
    	} 
		pbeParamSpec = new PBEParameterSpec(salt,count);
		try { 
		    keyFac = SecretKeyFactory
		    .getInstance(algorithm,"BC");
		} catch (NoSuchAlgorithmException e) {
		    Log.e(TAG,"CryptoHelper(): "+e.toString());
		} catch (NoSuchProviderException e) {
		    Log.e(TAG,"CryptoHelper(): "+e.toString());		
		} 
    } 
    /** 
     * @author Isaac Potoczny-Jones 
     *  
     * @return null if failure, otherwise hex string version of key 
     */ 
	public static String generateMasterKey () {