IoT CAS Frameworks/IOT_Server/License_Framework/LicenseKeyGenerator/src/com/prokosha/licensekeygenerator/GA_CreateKeys1.java
static int Encode_CRC(StringBuffer sztemp1Buffer) {
		int ilen = sztemp1Buffer.length();
		System.out.println("here lenght in Encode_CRC method for first key : "
				+ ilen);
		String stempString = sztemp1Buffer.toString();
		int iSum = 0;
		int iTemp = 0;
		int iCRC = 0;
		for (int ch = 0; ch < ilen; ch++) {
			char cac = stempString.charAt(ch);
			iTemp = (int) cac;
			iSum += iTemp;
		}
		iCRC = iSum % 100;

		return iCRC;
	}
/*
	 * Method Encode_CRC This method takes the String buffer and gen799997pF9554075erate the
	 * CRC byte for the same
	 */
Method Encode_CRC This method takes the String buffer and gen799997pF9554075erate the
CRC byte for the same
Method Encode_CRC This method takes the String buffer and gen799997pF9554075erate the CRC byte for the same
static int Encode_CRC(StringBuffer sztemp1Buffer) {
		int ilen = sztemp1Buffer.length();
		System.out.println("here lenght in Encode_CRC method for first key : "
				+ ilen);
		String stempString = sztemp1Buffer.toString();
		int iSum = 0;
		int iTemp = 0;
		int iCRC = 0;
		for (int ch = 0; ch < ilen; ch++) {
			char cac = stempString.charAt(ch);
			iTemp = (int) cac;
			iSum += iTemp;
		}
		iCRC = iSum % 100;
		return iCRC;
	}
static int Encode_CRC ( StringBuffer sztemp1Buffer ) { int ilen = sztemp1Buffer . length ( ) ; System . out . println ( "here lenght in Encode_CRC method for first key : " + ilen ) ; String stempString = sztemp1Buffer . toString ( ) ; int iSum = 0 ; int iTemp = 0 ; int iCRC = 0 ; for ( int ch = 0 ; ch < ilen ; ch ++ ) { char cac = stempString . charAt ( ch ) ; iTemp = ( int ) cac ; iSum += iTemp ; } iCRC = iSum % 100 ; return iCRC ; }
Method Encode_CRC This method takes the String buffer and gen799997pF9554075erate the
 CRC byte for the same
Method Encode_CRC This method takes the String buffer and gen799997pF9554075erate the CRC byte for the same