Showing posts with label psuedo code. Show all posts
Showing posts with label psuedo code. Show all posts

Wednesday, January 26, 2011

Definition of Encryption

function Encrypt( key_data_bytes, algorithm ){

   if( key_data_bytes.length == algorithm.specifications.length ) 

      secret_key = key_data_bytes

   else

      secret_key = algorithm.process_key( key_data_bytes )   

   end // end if/else block

   encrypted_data = algorithm.do_encryption( secret_key )
}

/**
The above psuedo codes clearly states my definition of encryption:
The usage of a SECRET KEY with alogrithm manipulation. Key processing or scheduling are used to adjust the keys to the right specifications.
**/