Show Some Love

Spring Security 3 SHA-1 with Salt

This forum was posted on Monday, May 20, 2013 7:22:42 PM

I hv a legacy app that we are rewriting and I'm in the process of converting the existing member table. The passwords were encrypted by using sha-1 with a salt. Specifically salt+password. illustration if the salt is ABC123 and the password is XYZ789 then the string that would be encrypted is ABC123XYZ789. Spring Security by default encrypts the String XYZ789{ABC123}. How do manipulate my own password encrypt/validation to bypass Spring Security's default encryption.
I can post my security xml but everything is working if I update the hashed password with the password{salt} encrypted.
Thank You for you help!

94 Viewed this Question

 Recent Replies on "Spring Security 3 SHA-1 with Salt"

  • Nobody has replied on this post, be first to post answer.

Post Your Solution for this Question

Note: Please Put Code into <code></code> block.

Threads related to "Spring Security 3 SHA-1 with Salt":

Java running in Oracle - the imported jars

I am trying to get a small java class to load into Oracle 11g so I can run it and call it from PL/SQL. I coded and compiled the class on my local computer in eclipse and it compiles best. I packaged it up into a jar (with the other jar files it depends on in the jar). They I tried loading my jar into Oracle 11g. Everything loads in unfortunately when it loads my custom java class it stays invalid and Whenever I try to compile it within Oracle it says it can't find references to

Maven/Netbeans Have different testing profiles and environment variables

We are trying to do Selenium tests for our java web application. We'd like to be capable to quickly configure our tests with a combination of the java function "System.getProperty" and changing the profiles available for the test.The reason for doing this is so that we can test various servers with a simple update of the dropdown box in netbeans (from to "server name/details"). Our servers run things like a Snapshot RC and hotfix branch so this would be very helpful in track

Java: How to initialize int array in a switch case?

How can i initialize an integer array in Java like so: int array = {1 2 3}; inside a switch statement?presently I can write:switch(something) { case 0: int array = {1 2 3}; break; default: int array = {3 2 1};}But Whenever I try to access the array variable eclipse will complain that it might not be initialized.If I try to declare it like int array; or int array = new int3; and then have the switch statement it would say I am trying to redeclare it.How can i resolve this issue? Final conc

Can you see why this if statement is not working correctly?

When I run this the if statement generally returns false and thus doesn't run the two lines I hv there. You can see in the above line i checked if the words are actually the similar and they are similar. So is there something here that I am completely oblivious to or am i just screwed? If it matters I am working with eclipse. boolean wordHasElement = false;for (int firstdimension = 0; firstdimension System.out.println("-"+ wordsfirstdimension0 + "-" + linewordslinewordnumb

An error occurs whenever I try to open a jsp page in Eclipse.

Whenever I open a jsp page in Eclipse IDE I get the following error:eclipse.buildId=unknownjava.version=1.5.0_14java.vendor=Sun Microsystems Inc.BootLoader constants: OS=win32 ARCH=x86 WS=win32 NL=fr_FRFramework arguments: -product org.eclipse.epp.package.jee.productCommand-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.productErrorWed Jun 06 18:00:25 CEST 2012issues occurred when invoking code snippet snippet from plug-in: "org.eclipse.jface".java.language

Attempting to compile/run Java code on Ubuntu, Error: java.lang.NoClassDefFoundError: org/apache/pdfbox/pdmodel/PDDocument

I am attempting to run the following Java code snippet snippet on an Ubuntu system. The code snippet snippet should generate a blank PDF file using the pdfbox class:import org.apache.pdfbox.pdmodel.*;import*;public class BlankPDF { public static void main(String args) { PDDocument doc = null; try{ doc = new PDDocument(); } catch (IOException ie){ System.out.println(ie); } doc.addPage(new PDPage()); try{"blank PDF.pdf"); doc.close(); } catch (Exception io){ System.out.println(io); } }}I

Resizing Height of Subplots in JFreeChart

I am working with a CombinedDomainXYPlot to put five various charts on one chart and I noticed that the second subplot is smaller the first the third is smaller than the second etc. do you know approach to set the sizes of the subplots so that for illustration the second third fourth and fifth subplots all have the similar height?

How to share information between GUI threads?

Iím writing a member application with an accompanying GUI (Swing). My two classes ClientClass and MainFrame are running various threads yet require to call methods in one other. ClientClass instantiates the GUI (MainFrame) at little point during the applications life cycle on the EventQueue thread (displayGUI()). ClientClass having various methods like recv() called from the member classes thread that updates MainFrame. In turn MainFrame has methods that are triggered by events like the push of a butt

Accessing variables from other classes

I hv two classes. One class works does the calculations whilst the other is a GUI to present them.My problem is - I hv "typical coded" a file path into my calculations class and can not appear to find a approach to make it dynamic. As the code snippet snippet is clearly big I uploaded it. Plz tell me if you'd prefer me to paste it here.GUI Class: Class: solution in simple terms would be very helpful. Thnk u.

Controlling Oracle cursors

The problem: Number of cursors go up until max is reached.first connection is made. This connection is never close()edClass.forName("oracle.jdbc.driver.OracleDriver");con = DriverManager.getConnection(url schema password);con.setAutoCommit(true);con.setHoldability(ResultSet.CLOSE_CURSORS_AT_COMMIT);Using that similar connection member can public ResultSet runSelect(final StringBuilder query) { Statement stmt = null; ResultSet rs = null; try { stmt = con.createStatement(); rs = stmt.execu