IoT CAS Frameworks/IOT_Server/License_Framework/LicenseKeyGenerator/src/com/prokosha/licensekeygenerator/GA_CreateKeys1.java
static int Encrypt_no(StringBuffer sz1, StringBuffer sz2) {
		int ism;
		StringBuffer szstr = new StringBuffer();
		szstr.setLength(MAX_BUFFER_SIZE);
		String abc = sz1.toString();
		System.out.println(" total key string is encrypt method " + abc);

		int aln = abc.length();
		char ac;
		for (int ai = 0; ai < aln; ai++) {
			ac = abc.charAt(ai);
			szstr.setCharAt(ai, ac);
		}

		// here we are setting length based on how much keysnumbers we want here
		// 26
		// based on this change above key length
		sz1.setLength(26);
		szstr.setLength(26);
		System.out.println(" total szstrkey string is encrypt method szstr "
				+ szstr);
		System.out.println(" total sz2 string is encrypt method szstr " + sz2);

		int encr = enc(sz1, sz2);
		System.out.println(" here encryption is o mean success: " + encr);
		ism = iCheck;
		iCheck = 0;

		return 0;
	}
/*
	 * Method Encrypt_no This will take any String buffer and send this across
	 * to Encryption mechanism
	 */
Method Encrypt_no This will take any String buffer and send this across
to Encryption mechanism
Method Encrypt_no This will take any String buffer and send this across to Encryption mechanism
static int Encrypt_no(StringBuffer sz1, StringBuffer sz2) {
		int ism;
		StringBuffer szstr = new StringBuffer();
		szstr.setLength(MAX_BUFFER_SIZE);
		String abc = sz1.toString();
		System.out.println(" total key string is encrypt method " + abc);
		int aln = abc.length();
		char ac;
		for (int ai = 0; ai < aln; ai++) {
			ac = abc.charAt(ai);
			szstr.setCharAt(ai, ac);
		}
		sz1.setLength(26);
		szstr.setLength(26);
		System.out.println(" total szstrkey string is encrypt method szstr "
				+ szstr);
		System.out.println(" total sz2 string is encrypt method szstr " + sz2);
		int encr = enc(sz1, sz2);
		System.out.println(" here encryption is o mean success: " + encr);
		ism = iCheck;
		iCheck = 0;
		return 0;
	}
static int Encrypt_no ( StringBuffer sz1 , StringBuffer sz2 ) { int ism ; StringBuffer szstr = new StringBuffer ( ) ; szstr . setLength ( MAX_BUFFER_SIZE ) ; String abc = sz1 . toString ( ) ; System . out . println ( " total key string is encrypt method " + abc ) ; int aln = abc . length ( ) ; char ac ; for ( int ai = 0 ; ai < aln ; ai ++ ) { ac = abc . charAt ( ai ) ; szstr . setCharAt ( ai , ac ) ; } sz1 . setLength ( 26 ) ; szstr . setLength ( 26 ) ; System . out . println ( " total szstrkey string is encrypt method szstr " + szstr ) ; System . out . println ( " total sz2 string is encrypt method szstr " + sz2 ) ; int encr = enc ( sz1 , sz2 ) ; System . out . println ( " here encryption is o mean success: " + encr ) ; ism = iCheck ; iCheck = 0 ; return 0 ; }
Method Encrypt_no This will take any String buffer and send this across
 to Encryption mechanism
Method Encrypt_no This will take any String buffer and send this across to Encryption mechanism
// here we are setting length based on how much keysnumbers we want here // 26 // based on this change above key length