Beispiel #1
0
		//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		//생성 : 
		//추가 : 
		//목적 : 유저 정보 파라미터 저장
		//설명 : 
		//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		private void SaveUserInformationParameter()
		{
			var pDocument = CDocument.GetDocument;

			do {
				string strPath = string.Format( @"{0}\{1}", pDocument.m_objConfig.GetCurrentPath(), CDefine.DEF_USER_INFORMATION );
				ClassINI objINI = new ClassINI( strPath );

				string strSection = "SYSTEM";
				string strLogInPassword = "";
				for( int iLoopCount = 0; iLoopCount < ( int )CDefine.enumUserAuthorityLevel.USER_AUTHORITY_LEVEL_FINAL; iLoopCount++ ) {
					// 데이터 암호화
					strLogInPassword = AEC256.AESEncrypt256( m_objLogInParameter.strLoginParameter[ iLoopCount ] );
					objINI.WriteValue( strSection, string.Format( "strLoginParameter{0}", iLoopCount.ToString() ), strLogInPassword );
				}

			} while( false );
		}
Beispiel #2
0
		//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		//생성 : 
		//추가 : 
		//목적 : 유저 정보 파라미터 로드
		//설명 : 
		//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		private void LoadUserInformationParameter()
		{
			var pDocument = CDocument.GetDocument;

			do {
				string strPath = string.Format( @"{0}\{1}", pDocument.m_objConfig.GetCurrentPath(), CDefine.DEF_USER_INFORMATION );
				ClassINI objINI = new ClassINI( strPath );

				string strSection = "SYSTEM";
				string strLogInPassword = "";
				for( int iLoopCount = 0; iLoopCount < ( int )CDefine.enumUserAuthorityLevel.USER_AUTHORITY_LEVEL_FINAL; iLoopCount++ ) {
					string strData = objINI.GetString( strSection, string.Format( "strLoginParameter{0}", iLoopCount.ToString() ), "Pok+j8Eyvhqpuxu+j2h8fg==" );
					// 데이터 복호화
					strLogInPassword = AEC256.AESDecrypt256( strData );
					m_objLogInParameter.strLoginParameter[ iLoopCount ] = strLogInPassword;
				}

			} while( false );
		}