Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I actually had a similar requirement. I addressed it by taking my connection string and encrypting it using the Rijndael encryption logic (check it out in System.Security.Cryptography). It's very easy to use. A friend of mine has been attempting to crack this for the past 19 months, using a series of Rainbow tables - yes, he has way too much time on his hands - and has told me that "our solar system will probably go dark before I can get in." I laughed. Way too much free time.</p> <p>I simply took my connection string, which I do store in an XML file (so I can change it out if needed) and encrypted it. My app, as part of its initialization process, reads in this value - decrypts it - then, connects and opens the database.</p> <p>Something like "I am a piece of data that is to be encrypted" ..... once encrypted ends up something like ..... "V27AsTNsJA+BEwoGR2PbiZum5puwiLbfMa41ens8r8sSiEnn6FiT+k8ImEft Qba8ziCpie94s3bEwcPekqRfhO1Noc8lVeERyezmtqN9/0ZgmzJbNbl/3emTLLfb0Qpj" .... which obviously isn't going to be very useful to someone trying to break in.</p> <p>It's worth pointing out that even with a lowly 128-bit encryption (this supports 256-bit also) remember that there are 2 raised to the power of 128 possible values, or 3.4 e+38. Think what a huge number that is:</p> <p>340,000,000,000,000,000,000,000,000,000,000,000,000</p> <p>If you attempt to crack this, for example, at the rate of 1 trillion attempts per second (1,000,000,000,000 / second) it could potentially take you 3 million million million years to get it. Of course, you might get it on the first guess .... probably not, though.</p> <p>A 256-bit key is 1.15 e+77 and a 512-bit key is 1.34 e+154 possible values.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload