security

Is token based authentication secure when

久未见 提交于 2019-12-24 08:07:35
问题 any request is made via HTTPS and the token is transmitted the following ways: a) GET https://foo.dom/foobar?auth_token=abcxyz b) GET https://foo.dom/foobar with HTTP-header like X-FOOBAR-TOKEN: abcxyz As I understand SSL, in case of an HTTP request the client first negotiates the SSL connection and does only transmit additional parameters and/or HTTP headers in case the secure connection was established successfully. Am I right so far? Thx fur any suggestion. Felix 回答1: SSL buys you

What are good programming practices to prevent malware in standalone applications?

大憨熊 提交于 2019-12-24 08:00:03
问题 Does anyone have any thoughts on how to prevent malware attacks on standalone applications. Let's say this is a program on a Windows machine connected to the internet, this is the most common scenario. I'm also wondering what type of attacks are possible. I believe .NET will do some type of static check on the code before it runs it, using a type of checksum. This would detect a statically attached malicious code snippet. Can this be gotten around? What about dynamically injected code.

Azure ServiceBus SAS key for a subscription

时光毁灭记忆、已成空白 提交于 2019-12-24 07:52:04
问题 I have the following architecture: 1 topic where a publisher publishes messages and 3 subscriptions. All messages are dispatched in the 3 subscriptions thanks to a "1=1" rule. The 3 subscriptions are created to provide the message published to 3 different apps. I have a SAS key for the publisher with the "Write" permission on the topic. I now need to create 3 SAS keys with "listen" permission for the 3 apps but I saw that I can't associate a key with a subscription, only with a topic or at

Device admin confirm before DEACTIVATE

会有一股神秘感。 提交于 2019-12-24 07:35:38
问题 I want to ask a confirmation before disabling/deactivating device admin for my application. I searched a lot about it but not fing any proper solution for this. In short, I want to detect a callback when user click DEACTIVATE button from device admin and I want to ask a confirmation to use that whether are you sure you want to deactivate device admin ? If use press cancel then device admin should not be deactivated. If you observer AppLock application by DoMobile Lab from google play store,

different Session Keys in SRP6a

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 07:19:47
问题 i tried to use implementing of srp6 spr4net (https://code.google.com/p/srp4net/) in my solution. So, i rewrited client side from javascript to C# to my WinForm App. And wondered, that session keys just doesn't match! I tried all day long to work it out, but without result. here is my srp6a implementation: #region SRP6a client side // a - ephemeral private key // a = random between 2 and N-1 var a = new BigInteger(); { a.genRandomBits(Crypto.SRP.N.bitCount(), new Random()); if (a >= Crypto.SRP

Exporting SecKey from iOS to watchOS

北慕城南 提交于 2019-12-24 07:19:03
问题 I am trying to sync up private asymmetric keys between my iOS app and its watchOS equivalent. I have tried using SecKeyCopyExternalRepresentation to export it out as CFData and then send it to the watch using WatchConnectivity . However when it gets to the watch I have no way of converting the Data back into a SecKey . I tried using SecKeyCreateWithData in an attempt to recreate it, but it seems that that only works with symmetric keys, for when I tried it it crashed the watch app. Any ideas?

Exporting SecKey from iOS to watchOS

家住魔仙堡 提交于 2019-12-24 07:18:07
问题 I am trying to sync up private asymmetric keys between my iOS app and its watchOS equivalent. I have tried using SecKeyCopyExternalRepresentation to export it out as CFData and then send it to the watch using WatchConnectivity . However when it gets to the watch I have no way of converting the Data back into a SecKey . I tried using SecKeyCreateWithData in an attempt to recreate it, but it seems that that only works with symmetric keys, for when I tried it it crashed the watch app. Any ideas?

How to make a MySQL app using only stored procedures?

岁酱吖の 提交于 2019-12-24 07:15:04
问题 I've read about some application that reforce app security by deniying all mysql user permission except execution. I need a scheme like this because my app needs to do some checks before returning values and triggers are not an option because are not allowed in SELECT queries. So, the question is: if you are programming an app that just has access to Stored Procedures, how do you struct your app? I've never seen this kind of app and I would like to see what others did before reinvent the

How to make a MySQL app using only stored procedures?

断了今生、忘了曾经 提交于 2019-12-24 07:14:29
问题 I've read about some application that reforce app security by deniying all mysql user permission except execution. I need a scheme like this because my app needs to do some checks before returning values and triggers are not an option because are not allowed in SELECT queries. So, the question is: if you are programming an app that just has access to Stored Procedures, how do you struct your app? I've never seen this kind of app and I would like to see what others did before reinvent the

How to hook/monitor network calls made by integrated third party libraries?

你。 提交于 2019-12-24 07:00:19
问题 We are working on an ad mediation project that requires integrating an arbitrary number of third party libraries into a larger framework. All libraries have the common behavior of contacting an external server and returning a valid Android layout or failing, but we can assume no knowledge or control over their internal functions. The server interaction carried out by a third-party library is opaque from the standpoint of the framework/app that initiates the call sequence. This potentially