data-protection

Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits

做~自己de王妃 提交于 2021-02-07 05:53:05
问题 I have an Asp.NET Core app with no special setup of DataProtection stack - just AddMvc. While everything works on IISExpress/(Kestrel), on the IIS server I got this error: 11/23/2016 18:50:14:warn: Microsoft.AspNetCore.Session.SessionMiddleware[7] Error unprotecting the session cookie. System.Security.Cryptography.CryptographicException: The key {6d00462a-ba7f-4f65-bb36-711605de93f2} was not found in the key ring. at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector

Prevent user from printing/saving PDF file in C#

别来无恙 提交于 2021-02-05 07:24:26
问题 I am writing an application that views PDF files, this application uses AxAcroPDFLib AxAcroPDF My problem here is that I want to prevent user from saving and/or printing PDF files that are being viewed in my application Or in other words I want to hide toolbar of the PDF viewer any ideas ?! Thanx in advance 回答1: I solved the problem by using another plugin to view PDF files PDF Viewer 回答2: You can able to hide the toolbar by axAcroPDF1.setShowToolbar(false); 来源: https://stackoverflow.com

How to protect your software code? [duplicate]

一个人想着一个人 提交于 2019-12-28 16:41:42
问题 This question already has answers here : Closed 9 years ago . Possible Duplicates: How do you protect your software from illegal distribution? Best practice to prevent software copy Hypothetical situation: Lets say I have built a software product from the scratch and it does wonderful things. The only problem is that, once someone takes a look at the code, they will understand it very easily and they can easily build it up themselves. Now, the thing is that I built the code from the scratch

Invalid Code Signing Entitlements - Data Protection key not supported

别说谁变了你拦得住时间么 提交于 2019-12-24 08:56:44
问题 I have received an mail from Apple that my app has been rejected. The reason is: We have discovered one or more issues with your recent delivery for "Secure Send". To process your delivery, the following issues must be corrected: Invalid Code Signing Entitlements - Your application bundle's signature contains code signing entitlements that are not supported. Please check your Xcode project's code signing entitlements configuration, and remove any unneeded entitlements. Specifically, key "com

ASP.NET core 2.2 web api logs warnings related to data protection keys: how should we handle this issue?

二次信任 提交于 2019-12-21 20:35:29
问题 We have an ASP.NET core 2.2 web application exposing some web api controllers. Our application does not have any kind of authentication mechanism, all the exposed endpoints can be called by an anonymous user. When we host the application under IIS we get three strange warning messages at the application startup. These are the logs we get: Using an in-memory repository. Keys will not be persisted to storage. Neither user profile nor HKLM registry available. Using an ephemeral key repository.

Combining resources into a single binary file

对着背影说爱祢 提交于 2019-12-21 05:33:07
问题 How does one combine several resources for an application (images, sounds, scripts, xmls, etc.) into a single/multiple binary file so that they're protected from user's hands? What are the typical steps (organizing, loading, encryption, etc...)? This is particularly common in game development, yet a lot of the game frameworks and engines out there don't provide an easy way to do this, nor describe a general approach. I've been meaning to learn how to do it, but I don't know where to begin.

Enable iOS On-Disk Encryption

霸气de小男生 提交于 2019-12-19 05:46:19
问题 For my iOS 6+-only app, I would like to enable the On-Disk Encryption offered from iOS. I read this guide and I saw the "Protecting the User's Data" video of the WWDC 2012 (Session 714). However, I could not make it work. Here are the steps I followed: 1- In the iOS Dev Center, I created a new App ID with: 2- In Xcode, I added an Entitlements file with the key: 3- On the device, I activated a passcode lock. If I'm not wrong, this should be all. I now expect that while the device (in my case:

How is access for private variables implemented in C++ under the hood?

本秂侑毒 提交于 2019-12-19 05:14:58
问题 How does the compiler control protection of variables in memory? Is there a tag bit associated with private variables inside the memory? How does it work? 回答1: If you mean private members of instances, then there's no protection whatsoever at run-time. All protection takes place at compile-time and you can always get at the private members of a class if you know how they are laid out in memory. That requires knowledge of the platform and the compiler, and in some cases may even depend on

Data Protection provider across Asp.NET Core and Framework (generate password reset link)

拈花ヽ惹草 提交于 2019-12-18 19:20:12
问题 I am running into this problem relating to the DataProtectionProvider, first we only had 2 .NET Framework projects, now a .NET Core project is added which confuses me how to do the following: Generate a password reset link from a .NET Framework project, and use it in the .NET Core project. Both use the same database and user table, which have been made compatible with each other. .NET Framework is still the leading project in Code-First database generation. In both .NET Frameworks projects, I