ASP.NET Membership Encrypted Passwords

To keep your passwords secure but still be able to retrieve the password via the ASP.NET membership provider you will need to implement the password type as Encrypted.

To do this you need to provide a machine key in the web.config of machine.config.

You can find a machine key generator at:  http://www.developmentnow.com/articles/machinekey_generator.aspx

The membership code looks like:

<membership defaultProvider="BfssSqlMembershipProvider">
  <providers>
    <!-- Add a customized SqlMembershipProvider -->
    <add name="BfssSqlMembershipProvider"
    type="System.Web.Security.SqlMembershipProvider"
    connectionStringName="cstrBFSS"
    enablePasswordRetrieval="true"
    enablePasswordReset="true"
    requiresQuestionAndAnswer="true"
    applicationName="BusinessForSaleSpain"
    requiresUniqueEmail="false"
    passwordFormat="Encrypted"
    maxInvalidPasswordAttempts="5"
    minRequiredPasswordLength="7"
    minRequiredNonalphanumericCharacters="0"
    passwordAttemptWindow="10"
    passwordStrengthRegularExpression=""/>
  </providers>
</membership>
<machineKey
  validationKey="7D69B8F7D5D4A9D6CC9776D6972877FC1ACA7669
    650687987EBF3C2A1709E0065AAA13ECABF4193A65920A027588
    42EF9EA97FDAC57C2F40F808AD1FFD9145"
  decryptionKey="CB0CE75BFD315E2108A96F95384BA8E28AE2AF97
    03F42B7D369EE44C09C394A6"
  validation="SHA1" decryption="AES"
/>

Please make sure you generate your own machine key.

For further information about ASP.NET Membership please visit: http://msdn.microsoft.com/en-us/library/ff648345.aspx

June 5th, 2010 | Leave a Comment

Free Charting with jQuery and HTML 5 Canvas

Check out:

http://www.filamentgroup.co/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/

May 18th, 2010 | Leave a Comment

Progressive Enhancement

Don’t you just love browser compatabilty issues?

If you are a web developer then you have spent many hours testing your shiny new website in multiple browsers to find unexpected behaviour and broken styles, javascript etc.  You have probably looked at html 5 and css3 and thought, yeah it would be nice but then theres ie7, ie 6, safari, opera …

read more about progressive enhancement with css 3 and html 5

May 18th, 2010 | Leave a Comment

Web site optimisation and debugging

Google GWT 2.0 Speed Tracer as seen in .net magazine issue 202 on page 124 looks like a great tool to identify bottlenecks and bugs in your website or web application.

I am currently using FireFox with developer toolbar, firebug, yslow and pagespeed to debug, but the article claims that Speed Tracer offers hidden insights not found in other tools.

read more about speed tracer for website optimisation

May 18th, 2010 | 1 Comment

Free Color Scheme Designer

This is just a quick post linking to the best color scheme designer I have found on the web.

I used to use it a lot and then couldn’t find it when I needed it again.

So now it is here I shouldn’t loose it again.

Check it out - its a great way to apply color theory and ensure your websites look nice.

color scheme designer

September 20th, 2009 | Leave a Comment

Booking Availability Calendar

AmR Clearskys Availability modification for 2.7

I have recently been looking at availability calendars for use on Word Press and found this great little plugin that has been adapted for Word Press 2.7 by Anmari.

read more about the booking availability calendar

May 17th, 2009 | Leave a Comment

CSS Image Rollovers with No Javascript

Up until recently I have always relied on javascript to create image replacement and
image rollover techniques and haven’t really thought about alternatives. As far as I was
concerned javascript was just the way it was done.

The problem with javascript is that the rollover image has to be preloaded for it to
create a smooth effect and it doesn’t work in all browsers, especially with many people turning javascript support off for security reasons

read more about css image rollovers

February 24th, 2009 | 1 Comment

Free Flash Charting Control for ASP.NET, PHP and More

I have recently been working on a management dashboard for an e-commerce website and needed a good charting control to display an overview of sales, registrations etc.

After a brief crawl on the web I came across Fusion Charts. The controls are as neat and easy to use as any of the premium solutions I could find, but best of all, the basic package is completely free, even for commercial use.

read more about fusion charts

December 5th, 2008 | Leave a Comment

ie6 png transparency

ie6 png transparency problem example image

ie6 png transparency problem example image

I recently encountered an issue regarding png transparency on older browsers whilst developing a website targeted at schools.

The web site used png transparency to display rounded corders and tabs over a sky background.  It worked well in all modern browsers but in ie6 and lower the png transparency was replaced by an ugly grey box.

Due to the project specifications identifying ie6 in the browser compatibility list it was necessary to find a solution to the problem.

I spent some time researching possible solutions and tried a few out, some worked, some were difficult to implement and others just didn’t seem to work at all.  After some time I settled upon a solution and have documented it with the following example:

ie6 png transparency problem

The solution involves 2 methods for dealing with png transparency, one to handle img tags in the html and one to handle css background images.  I have also documented how to overcome the issue with non clickable links after implementing the css only png transparency solution.

October 30th, 2008 | Leave a Comment

Pacweb Launch New Web Site

This is the new web site for Pacweb Internet Development.

Pacweb have decided to use the popular open source blogging application Word Press as the platform for our new web site.

Word press enables us to quickly post new content and update articles from anywhere with an internet connection.  With content being the main focus for the new web site we feel that Word Press is the ideal solution.

Stay tuned for up and coming articles, services and discussions on Pacweb.

September 30th, 2008 | Leave a Comment

Powered by WordPress | Blue Weed by Blog Oh! Blog | Entries (RSS) and Comments (RSS).