Bug 133485. Set .miCASA files as hidden

This commit is contained in:
Jim Norman 2005-12-20 18:20:27 +00:00
parent b1283d3b62
commit daf881aa7c
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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);