diff --git a/CASA.changes b/CASA.changes index de8aa58a..d1fa4509 100644 --- a/CASA.changes +++ b/CASA.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 20 11:17:38 MST 2005 - jnorman@novell.com + +- Bug 133485. Set .miCASA files as hidden + ------------------------------------------------------------------- Tue Dec 20 10:40:38 MST 2005 - jnorman@novell.com diff --git a/c_micasad/lss/CASACrypto.cs b/c_micasad/lss/CASACrypto.cs index d283ea24..dfbaa932 100644 --- a/c_micasad/lss/CASACrypto.cs +++ b/c_micasad/lss/CASACrypto.cs @@ -48,7 +48,9 @@ namespace sscs.crypto fsEncrypt = new FileStream(fileName, FileMode.Create); #if LINUX Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR); -#endif +#endif + // make hidden + File.SetAttributes(fileName, FileAttributes.Hidden); SHA256 sha = new SHA256Managed(); byte[] hash = sha.ComputeHash(key); @@ -154,6 +156,9 @@ namespace sscs.crypto #if LINUX Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR); #endif + // make hidden + File.SetAttributes(fileName, FileAttributes.Hidden); + SHA256 sha = new SHA256Managed(); byte[] hash = sha.ComputeHash(xmlData); @@ -358,6 +363,9 @@ namespace sscs.crypto #if LINUX Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR); #endif + // make hidden + File.SetAttributes(fileName, FileAttributes.Hidden); + csEncrypt = new CryptoStream(fsEncrypt, encryptor, CryptoStreamMode.Write);