This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-03-10 03:18:05

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

MD5 Encryption

I am making a login system with Windows batch scripts and I am storing the passwords in a SQL database using SQLite. I want the password to be encypted using MD5 (like the MD5 function in PHP) but when I search Google, it shows lots of programs to get MD5 checksums instead.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#2 2012-03-10 09:59:27

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: MD5 Encryption

I wouldn't recommend MD5 because it's officially considered cryptographically broken.


Posts: 20000 - Show all posts

Offline

 

#3 2012-03-10 12:17:10

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: MD5 Encryption

Can I just ask why you would want to make a login system with Windows Batch Scripts?


http://i.imgur.com/zeIZW.png

Offline

 

#4 2012-03-10 18:27:02

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: MD5 Encryption

Slightly off-topic, how would one go from storing passwords in MD5 to a SHA based one? I can't unencrypt the passwords so the only way I can think if doing it is SHA'ing existing passwords, then MD5ing AND SHA'ing new passwords.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#5 2012-03-10 19:10:22

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: MD5 Encryption

sparks wrote:

Slightly off-topic, how would one go from storing passwords in MD5 to a SHA based one? I can't unencrypt the passwords so the only way I can think if doing it is SHA'ing existing passwords, then MD5ing AND SHA'ing new passwords.

Probably your best bet.


http://i.imgur.com/zeIZW.png

Offline

 

#6 2012-03-10 21:56:17

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: MD5 Encryption

sparks wrote:

Slightly off-topic, how would one go from storing passwords in MD5 to a SHA based one? I can't unencrypt the passwords so the only way I can think if doing it is SHA'ing existing passwords, then MD5ing AND SHA'ing new passwords.

1. MD5 is about as secure as SHA1
2. I think that there are tools to reverse MD5 and SHA1 available (so #1 is not very)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#7 2012-03-11 04:10:57

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: MD5 Encryption

rookwood101 wrote:

Can I just ask why you would want to make a login system with Windows Batch Scripts?

I am making an OS shell.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#8 2012-03-11 04:36:53

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: MD5 Encryption

jvvg wrote:

sparks wrote:

Slightly off-topic, how would one go from storing passwords in MD5 to a SHA based one? I can't unencrypt the passwords so the only way I can think if doing it is SHA'ing existing passwords, then MD5ing AND SHA'ing new passwords.

1. MD5 is about as secure as SHA1
2. I think that there are tools to reverse MD5 and SHA1 available (so #1 is not very)

The way you put it, database holders might as well not bother encrypting at all, anyone who downloads this tool will be able to decrypt it, which I really don't think is that case. SHA2 (or SHA3 which is still in development) came out after MD5 and claims to be more secure, resisting a method of decryption called collision detection which MD5 was succeptable to.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#9 2012-03-11 05:47:58

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: MD5 Encryption

sparks wrote:

jvvg wrote:

sparks wrote:

Slightly off-topic, how would one go from storing passwords in MD5 to a SHA based one? I can't unencrypt the passwords so the only way I can think if doing it is SHA'ing existing passwords, then MD5ing AND SHA'ing new passwords.

1. MD5 is about as secure as SHA1
2. I think that there are tools to reverse MD5 and SHA1 available (so #1 is not very)

The way you put it, database holders might as well not bother encrypting at all, anyone who downloads this tool will be able to decrypt it, which I really don't think is that case. SHA2 (or SHA3 which is still in development) came out after MD5 and claims to be more secure, resisting a method of decryption called collision detection which MD5 was succeptable to.

Well I think I have found a solution. I found a simple command line program that encrypts text using a password... If you encrypt any text with the code "test", trying to decrypt the text with the code "tset", it will give completely different decrypted text. I can keep the code secure by using a batch file compiler, then compress it with something like UPX. Would that be secure enough for passwords?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#10 2012-03-11 06:08:46

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: MD5 Encryption

nathanprocks wrote:

sparks wrote:

jvvg wrote:


1. MD5 is about as secure as SHA1
2. I think that there are tools to reverse MD5 and SHA1 available (so #1 is not very)

The way you put it, database holders might as well not bother encrypting at all, anyone who downloads this tool will be able to decrypt it, which I really don't think is that case. SHA2 (or SHA3 which is still in development) came out after MD5 and claims to be more secure, resisting a method of decryption called collision detection which MD5 was succeptable to.

Well I think I have found a solution. I found a simple command line program that encrypts text using a password... If you encrypt any text with the code "test", trying to decrypt the text with the code "tset", it will give completely different decrypted text. I can keep the code secure by using a batch file compiler, then compress it with something like UPX. Would that be secure enough for passwords?

nonono never use a known string to encrypt passwords, especially if you have to access that password to every decrypt it/compare it with another password. You pretty much HAVE to use a hash, any other way is dangerous really, as the passwords could be found out by someone.


http://i.imgur.com/zeIZW.png

Offline

 

#11 2012-03-11 06:14:38

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: MD5 Encryption

rookwood101 wrote:

nathanprocks wrote:

sparks wrote:


The way you put it, database holders might as well not bother encrypting at all, anyone who downloads this tool will be able to decrypt it, which I really don't think is that case. SHA2 (or SHA3 which is still in development) came out after MD5 and claims to be more secure, resisting a method of decryption called collision detection which MD5 was succeptable to.

Well I think I have found a solution. I found a simple command line program that encrypts text using a password... If you encrypt any text with the code "test", trying to decrypt the text with the code "tset", it will give completely different decrypted text. I can keep the code secure by using a batch file compiler, then compress it with something like UPX. Would that be secure enough for passwords?

nonono never use a known string to encrypt passwords, especially if you have to access that password to every decrypt it/compare it with another password. You pretty much HAVE to use a hash, any other way is dangerous really, as the passwords could be found out by someone.

How can I hash strings with the command line?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#12 2012-03-11 08:05:35

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Offline

 

#13 2012-03-12 01:54:52

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: MD5 Encryption

I want to encrypt a string, not check sum files.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#14 2012-03-12 02:26:16

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: MD5 Encryption

Why not use simple encryption?... It is not going to be a real OS shell anyway. FireDust stores passwords in plain text and it is more of an OS shell than mine will be.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

Board footer