security

iOS symmetric key encryption / decryption equivalent to Java

梦想的初衷 提交于 2020-01-01 19:21:15
问题 I am trying to encrypt/decrypt data ios to java & java to ios but I data encrypted in java is not properly decrypted in ios & data encrypted in ios is not properly decrypted in java - (NSData *) encrypt:(NSData *) dataToEncrypt symmetricKey:(NSData *)symmetricKey context:(CCOperation)encryptOrDecrypt{ NSUInteger data_length= [dataToEncrypt length]; uint8_t input_raw_data[data_length]; //The [dataToEncrypt length] gives the number of chars present in the string.So say there are 10 chars. //Now

How to decode password from sys.syslogins table

人盡茶涼 提交于 2020-01-01 19:16:14
问题 I have a program in which the user needs to login with user name and password. I'm checking the name from the sys.syslogins table in master db. But for the password I receive a string with (probably) coded characters like this (1?????????????). Now what can I do in order to decode that string and take the password in order to compare with the enter it one? 回答1: Try this: SELECT name FROM sys.syslogins WHERE pwdcompare('somepassword', password) = 1 Edited to replace double quotes with single

How to decode password from sys.syslogins table

对着背影说爱祢 提交于 2020-01-01 19:16:04
问题 I have a program in which the user needs to login with user name and password. I'm checking the name from the sys.syslogins table in master db. But for the password I receive a string with (probably) coded characters like this (1?????????????). Now what can I do in order to decode that string and take the password in order to compare with the enter it one? 回答1: Try this: SELECT name FROM sys.syslogins WHERE pwdcompare('somepassword', password) = 1 Edited to replace double quotes with single

Basic Authentication : Is it possible to setRemoteUser like getRemoteUser()

大憨熊 提交于 2020-01-01 19:08:19
问题 Hi I am using basic authentication method for protecting some pages in my Webapp. Which have a specified url pattern as follows: <url-pattern>/Important/*</url-pattern> <auth-method>BASIC</auth-method> Now the problem is if the user logs in the normal way using a login form .The data is posted to my servlet which validates the username and password and then proceeds further. Is there a way that i could setRemoteUser in this servlet , because the authentication input appears again once the

Basic Authentication : Is it possible to setRemoteUser like getRemoteUser()

旧街凉风 提交于 2020-01-01 19:08:05
问题 Hi I am using basic authentication method for protecting some pages in my Webapp. Which have a specified url pattern as follows: <url-pattern>/Important/*</url-pattern> <auth-method>BASIC</auth-method> Now the problem is if the user logs in the normal way using a login form .The data is posted to my servlet which validates the username and password and then proceeds further. Is there a way that i could setRemoteUser in this servlet , because the authentication input appears again once the

SolrException: Error loading class 'solr.RunExecutableListener' + '/var/tmp/sustes' process

风流意气都作罢 提交于 2020-01-01 18:57:58
问题 Prehistory: My friend's site started to work slowly. This site uses docker . htop told me that all cores loaded on 100% by the process /var/tmp/sustes with the user 8983 . Tried to find out what is sustes , but Google did not help, but 8983 tells that the problem in Solr container. Tried to update Solr from v6.? to 7.4 and got the message: o.a.s.c.SolrCore Error while closing ... Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.RunExecutableListener' Rolled back to

Keycloak provider and user storage

旧城冷巷雨未停 提交于 2020-01-01 18:57:05
问题 I have a running java ee application and now i want to integrate keycloak as authentication server. The only thing i have troubles is the user storage. I want to have all the user data in my java application. The problem now: If the user registers on the keycloak frontend, my java application doesn´t know that the user has registered, so i cannot create a new entity. I found out that keycloak is able to load some custom modules (https://keycloak.github.io/docs/userguide/keycloak-server/html

Detecting forms authentication timeout in login page

二次信任 提交于 2020-01-01 18:54:26
问题 When you have forms authentication setup to redirect to login.aspx when accessing a protected page, what's a good way to detect in login.aspx whether the user was sent there because they haven't logged on yet, or because their forms auth ticket is expired? I'd like to display a "you've timed out" message. (I do not mention the word session in this question, because ASP.NET treats them so distinctly, however, if there is a good solution that involves session, I'm all ears) I've solved this in

Avoiding TRUSTWORTHY ON and PERMISSION_SET = UNSAFE using System.Net.Http

旧巷老猫 提交于 2020-01-01 18:30:23
问题 Trying to create a stored procedure from a DLL that I built to use with SQL using CLR Integration. I think I need a signed version of System.Net.Http and explain why below. Any advice or tips would be appreciated. The solution works 100% if I use the command ALTER DATABASE test2 SET TRUSTWORTHY ON Then I Create the assembly using the following commands CREATE ASSEMBLY [System.Net.Http] AUTHORIZATION dbo FROM 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0_

How to programatically get the Enforce Password History group policy setting?

大兔子大兔子 提交于 2020-01-01 18:17:38
问题 How can i programatically get the Enforce Password History group policy setting? Research Effort You can find the Group Policy option under: **Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy** Enforce password history This security setting determines the number of unique new passwords that have to be associated with a user account before an old password can be reused. The value must be between 0 and 24 passwords. This policy enables administrators to