Home > database > ensemble_get_encryption_key.m

ensemble_get_encryption_key

PURPOSE ^

Returns the encryption key string used by ensemble.

SYNOPSIS ^

function key = ensemble_get_encryption_key(database)

DESCRIPTION ^

 Returns the encryption key string used by ensemble.

 Make sure that the path to the file containing
 the encryption string is defined in ensemble_globals.m. Also
 make sure that you have read permissions to the file containing
 the encryption key.

 **********************************************************************************************************  

 "Ensemble" is the proprietary property of The Regents of the University of California ("The Regents.")

  Copyright (c) 2005-09 The Regents of the University of California, Davis campus. All Rights Reserved.

  Redistribution and use in source and binary forms, with or without modification, are permitted by
  nonprofit, research institutions for research use only, provided the conditions in the included
  license agreement are met.

  Refer to  for the license agreement,
  
 **********************************************************************************************************

 Author(s):
 Sept 30, 2009 - Stefan Tomic, First Version

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function key = ensemble_get_encryption_key(database)
0002 % Returns the encryption key string used by ensemble.
0003 %
0004 % Make sure that the path to the file containing
0005 % the encryption string is defined in ensemble_globals.m. Also
0006 % make sure that you have read permissions to the file containing
0007 % the encryption key.
0008 %
0009 % **********************************************************************************************************
0010 %
0011 % "Ensemble" is the proprietary property of The Regents of the University of California ("The Regents.")
0012 %
0013 %  Copyright (c) 2005-09 The Regents of the University of California, Davis campus. All Rights Reserved.
0014 %
0015 %  Redistribution and use in source and binary forms, with or without modification, are permitted by
0016 %  nonprofit, research institutions for research use only, provided the conditions in the included
0017 %  license agreement are met.
0018 %
0019 %  Refer to  for the license agreement,
0020 %
0021 % **********************************************************************************************************
0022 %
0023 % Author(s):
0024 % Sept 30, 2009 - Stefan Tomic, First Version
0025   
0026 %ensemble_globals should be a script where
0027 %paths.data_encryption_key is defined
0028 ensemble_globals;
0029 
0030 fid = fopen(paths.data_encryption_key,'r');
0031 key = fgetl(fid);
0032 fclose(fid);

Generated on Wed 20-Sep-2023 04:00:50 by m2html © 2003