security

What is the difference between Owner and User (WindowsIdentity)?

大城市里の小女人 提交于 2021-01-28 21:56:38
问题 When getting the username and/or SID of the current user, what is the preferred method? Is it using: WindowsIdentity.GetCurrent().Owner Or: WindowsIdentity.GetCurrent().User What is the difference between the two? This would be a great question for SuperUser.com, but alas, it's not live yet. Thanks! 回答1: What you usually want is the User. Every security object in windows has permissions and owner. The user is also a security object so it has permissions and owner. The ownership means that the

How to prevent users and other applications from accessing data saved in a file whose content is protected by a password - only streams?

╄→гoц情女王★ 提交于 2021-01-28 21:52:38
问题 So I am creating a business management system so the project files will be saved locally on the computer but many can access the computer. In order that no one can just open the files and access all the data, I want the file to be able to open just threw my app. In order to do it, I thought that in order to open the file there will be some constant password, that I will pass the stream so this is the only way the file can open. Is this possible? what should I change in order to do it in the

What is the difference between Owner and User (WindowsIdentity)?

余生颓废 提交于 2021-01-28 21:40:56
问题 When getting the username and/or SID of the current user, what is the preferred method? Is it using: WindowsIdentity.GetCurrent().Owner Or: WindowsIdentity.GetCurrent().User What is the difference between the two? This would be a great question for SuperUser.com, but alas, it's not live yet. Thanks! 回答1: What you usually want is the User. Every security object in windows has permissions and owner. The user is also a security object so it has permissions and owner. The ownership means that the

How to prevent users and other applications from accessing data saved in a file whose content is protected by a password - only streams?

坚强是说给别人听的谎言 提交于 2021-01-28 21:25:36
问题 So I am creating a business management system so the project files will be saved locally on the computer but many can access the computer. In order that no one can just open the files and access all the data, I want the file to be able to open just threw my app. In order to do it, I thought that in order to open the file there will be some constant password, that I will pass the stream so this is the only way the file can open. Is this possible? what should I change in order to do it in the

Bouncy Castle FIPS mode for PKCS#12 KeyStore Format

╄→尐↘猪︶ㄣ 提交于 2021-01-28 19:05:54
问题 Does Bouncy Castle FIPS support "PKCS12" as KeyStore/trustStore? I read somewhere that in the approved mode it doesn't support PKCS#12 format but that it is supported in non approved mode (the generally used libraries). 回答1: Quoting from the BC-FJA user guide, section "7. Key Stores": The PKCS12 key store is not available in approved-mode of operation due to the algorithms required for PBE key generation in the PKCS#12 standard. It is available only to threads that are not running in approved

Secure PayPal Checkout Client-side?

只愿长相守 提交于 2021-01-28 17:47:31
问题 With paypal's client side checkout they claim you can simply drop their code onto your site (front end). However, from this example it looks like a user could modify the amount requested because the code is on the client ("Never trust the client"). Is it Possible to secure this or is server side code necessary? Code straight from demo <!DOCTYPE html> <head> <!-- Add meta tags for mobile and IE --> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA

HashiCorp Vault No handler for route error despite secrets engine being enabled through the UI

♀尐吖头ヾ 提交于 2021-01-28 12:28:38
问题 Using the non-dev vault server, I went ahead and used “Enable new engine” in the UI for kv version 1 and created a secret. As a test, I am using a token with root permissions to attempt the following and receive the no route error: curl -H "X-Vault-Token: " -X GET https://vaultwebsite.com/v1/secret/kvtest1/test12/test123 {“errors”:[“no handler for route ‘secret/kvtest/anothertest/test’”]} My understanding is that there shouldn’t be the no handler issue as I enabled that secrets engine through

WiFi Password with Command Prompt windows 8.1

冷暖自知 提交于 2021-01-28 12:23:53
问题 I used this command to get connected WiFi password: netsh wlan show profile name="my profile name" key=clear but it doesn't show security key, it says: key content = absent Is there still any way to get it? why is it absent? 回答1: From Help netsh wlan show profile /? If key is set to "clear" and the caller is local administrator, the key will be shown in plain text. 回答2: You can use this batch file to get all of the ssid's and passwords from your system. Copy and paste the code below into

Redirects been downgraded from Https to Http

醉酒当歌 提交于 2021-01-28 11:10:36
问题 We are facing an issue we don't really know where it's coming from. Our application uses Spring Cloud , Spring Oauth2 and Spring Boot 1.5.9 . The entry point is an API-Gateway service using Zuul to redirect calls to the other microservices. There is an Authorization-server to handle the Oauth2 authorization, not accessible from the outside but through the API-Gateway . It is configured to use Https for every call that comes from clients and then we use Http once inside our system to

How JVM works internally

不羁岁月 提交于 2021-01-28 10:19:21
问题 ALL, At work we have a software written in JAVA. It is operational and works fine. In couple of sources we have a statements like this: import x.y.z There is no source file where we use import x.y.* Recently we had a scan from the Software Assurance team and they found couple of deficiencies. An example would be this: The code is using MD5 encryption algorithm. Our code does not even import a class connected to the MD5 let alone use it. So, my question would be: If I have an import for the