But for the new policy need to encrypt password.
Now , we try to use function CubeSetConnParams encrypt the password ,but in the next step we don't konw how to decrypt it.
Anyone knows how to decrypt this cell ?
Code: Select all
cubeName='!Cube';
providerName='OLAPDB';
dataSourceLocation='TM1Server';
dataSourceName='DB';
dataSourceCatalog='test';
userID='admin';
password='apple';
sapClientID='';
sapClientLang='';
providerString='';
CubeSetConnParams(cubeName, providerName, dataSourceLocation,dataSourceName, dataSourceCatalog, userID, password
, sapClientID, sapClientLang, providerString);
Code: Select all
sDataSourcePassword=CellGetS('}CubeProperties','!Cube','PASSWORD');
DataSourceType='ODBC';
DatasourceUsername=sDataSourceUsername;
DatasourcePassword=sDataSourcePassword;