Re: Binary_Checksum - How secure is it?



Karthik (Karthik@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
In one of my client's database some confidential information is stored
in an encrypted format and a different column has the original value in
a Binary_Checksum format.

For example, if 'abc' is a password, its first encrypted and put in
Column1. But a Binary_Checksum of 'abc' is stored in Column2 for
comparison purposes.

I am just wondering whether this is secure. Can't the Binary_Checksum
value (26435) be reversed to get the original 'abc'?

I believe the checksum algorithm is not very sophisticated at all, it only
performs some XOR operations. Then again, it's a destroying
transformation. There are many strings that gets the same checksum. So
it's not completely trivial to guess the original text. Unless, of
course, you already have an idea of what it could be.

So it's not certainly not as secure as a real encrypted value.

--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Validations in bcp format file
    ... But SQL 2005 has a new rowset provider BULK, ... SELECT CASE field WHEN 'ABC' THEN 'DEF' ... Please check Books Online for exact syntax. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.sqlserver.tools)
  • Re: replacing substring within string
    ... -- hello abc world abc yo hello 123 world 123 yo ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: how to create csv file in DTA
    ... sum) as ABC ... Go to the transformations tab and make sure the SourceColumns appear as you ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. ... I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Kanan" wrote in message ...
    (microsoft.public.sqlserver.dts)
  • Windows Authentication from a workgroup to a domain sql server
    ... But the workgroup name is the same as ... SQL Part of abc domain ... Local user account name: test ... When the user tries to connect the SQL server comes back with: ...
    (microsoft.public.sqlserver.security)
  • Re: How to deploy a package to client PC ?
    ... Allan Mitchell ... "ABC" wrote in message ... on another PC from SQL Server, ... When I deploy a package to client, ...
    (microsoft.public.sqlserver.dts)