Jump to content




Sinelock v1.3 - SHA256 hashing, multiple passwords, key cards...


15 replies to this topic

#1 LDDestroier

  • Members
  • 1,089 posts
  • LocationACDC Town

Posted 14 April 2016 - 05:34 PM

It's everything I could ever want in a lock...
It's got so many features, man. So many features...

SINELOCK v1.3


pastebin get XDgeSDTq sinelock
std pb XDgeSDTqs sinelock
std ld sinelock sinelock

I call it 'Sinelock' because while you enter your password, it's shows a beautiful sinewave animation (that I tried my best to optimize)! YAY!

Syntax:
sinelock   --Open the lock screen.
sinelock addpass <password>   --Adds a new password to accept.
sinelock keymake <password>   --Puts a password on a disk or pocket computer.

Features:
+Uses SHA256 hashing w/ salt
+Allows for multiple passwords (either enter one of many, or enter all in order)
+Can use disks as key cards
+Prevents termination (duh)
+Works as computer lock OR door lock

Config options: (in program, not separate config file)
Spoiler

Screenshots:
Spoiler

Edited by EldidiStroyrr, 11 April 2017 - 09:58 PM.


#2 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 14 April 2016 - 06:58 PM

You took your screensaver and turned it into a lock? Interesting!

#3 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 14 April 2016 - 07:02 PM

It is called sinelock because the screensaver is like a sine wave, right?

#4 LDDestroier

  • Members
  • 1,089 posts
  • LocationACDC Town

Posted 14 April 2016 - 07:03 PM

View PostCreator, on 14 April 2016 - 07:02 PM, said:

It is called sinelock because the screensaver is like a sine wave, right?

Yup.

#5 FUNCTION MAN!

  • Members
  • 292 posts

Posted 15 April 2016 - 12:44 AM

sha256 is not encryption, it's cryptographic digest / hashing.

#6 LDDestroier

  • Members
  • 1,089 posts
  • LocationACDC Town

Posted 15 April 2016 - 03:04 AM

View PostFUNCTION MAN!, on 15 April 2016 - 12:44 AM, said:

sha256 is not encryption, it's cryptographic digest / hashing.

Damn! I knew I messes something up. Even if it was phrasing.

#7 randomdude999

  • Members
  • 19 posts
  • LocationStar System Sol, Galactic Sector ZZ9 Plural Z Alpha

Posted 19 May 2016 - 12:31 PM

I know this is a bit old, but the REAL way to do removable media auto unlock is with one-time pads. You regenerate the pads every time the computer is unlocked. If you know Python, then you can check out http://winappdbg.sou...net/blog/otp.py.

Hint: A true random generator is at https://www.fourmilab.ch/hotbits/. To get 2048 random bits, use https://www.fourmila...Hotbits?fmt=bin. Wait, that has rate limiting. Better just use math.random.

Edited by randomdude999, 19 May 2016 - 01:38 PM.


#8 Dragon53535

  • Members
  • 971 posts
  • LocationIn the Matrix

Posted 19 May 2016 - 04:26 PM

I don't see how that is applicable here at all. His system doesn't rely on removable media. Except for floppy disks in which all they have is the hashed password set into a file.

#9 LDDestroier

  • Members
  • 1,089 posts
  • LocationACDC Town

Posted 04 June 2016 - 12:23 AM

Cool new update!
+Added new config option 'dahChar', which is the character that is shown instead of the password when being typed ("********" instead of "password")
*Changed 'preventTermination' to 'terminationMode'. If 0, allows termination. If 1, disallows it. If 2, it shows a funny message like my previous lock.
*Changed format for hashed password file. A salt has been added, and newlines were stripped.
*Fixed floppy disk passwords not working
*Since last update, fixed flickering issues


If it has any problems (like, real problems that immediately cause issues), comment away! Or don't...y'know...

UPDATE: I changed the way salts work to how they should work. Before it was derived from the password, but now it's 128 random characters.

Edited by EldidiStroyrr, 05 June 2016 - 12:26 AM.


#10 LDDestroier

  • Members
  • 1,089 posts
  • LocationACDC Town

Posted 06 June 2016 - 08:01 PM

I made a new update! Ain't that the darnedest thing!
*Fixed some bugs that prevented it from working at all...woops
*Fixed the alternative YOU ARE WRONG or CORRECT message after 10 or more tries.
+Added a palate table, to easily change the colors
+Added different languages, for no raisin.

I've been meaning to add a palate for a while, but never did. Perhaps I should also add a background image to be rendered behind the sines?

#11 Checco2212

  • Members
  • 59 posts
  • LocationSomewhere in Europe

Posted 13 July 2016 - 10:52 PM

View PostEldidiStroyrr, on 06 June 2016 - 08:01 PM, said:

I made a new update! Ain't that the darnedest thing!
*Fixed some bugs that prevented it from working at all...woops
*Fixed the alternative YOU ARE WRONG or CORRECT message after 10 or more tries.
+Added a palate table, to easily change the colors
+Added different languages, for no raisin.

I've been meaning to add a palate for a while, but never did. Perhaps I should also add a background image to be rendered behind the sines?

Because I really like this program I created the italian translation for you:
italian = {
  wrong1 = "HAI SBAGLIATO.",
  wrong2 = "HAI SBAGLIATO, COME SEMPRE D'ALTRONDE.",
  right1 = "CORRETTO!",
  right2 = "CORRETTO, FINALMENTE!",
  noTerminate = "Non cercare di terminarmi",
},

Edited by Checco2212, 14 July 2016 - 01:10 AM.


#12 LDDestroier

  • Members
  • 1,089 posts
  • LocationACDC Town

Posted 14 July 2016 - 01:37 AM

View PostChecco2212, on 13 July 2016 - 10:52 PM, said:

Because I really like this program I created the italian translation for you:

Oh cool, thanks! Speaking of the different languages, did you try translating the latin for 'noTerminate'?

#13 Checco2212

  • Members
  • 59 posts
  • LocationSomewhere in Europe

Posted 14 July 2016 - 10:37 AM

View PostEldidiStroyrr, on 14 July 2016 - 01:37 AM, said:

View PostChecco2212, on 13 July 2016 - 10:52 PM, said:

Because I really like this program I created the italian translation for you:

Oh cool, thanks! Speaking of the different languages, did you try translating the latin for 'noTerminate'?

I'm still not too sure about the grammatical quality of this translation...
latin = {
  wrong1 = "ERRONEIS.",
  wrong2 = "ERRONEIS, UT SEMPER.",
  right1 = "Ius!",
  right2 = "Ius, tandem!",
  noTerminate = "Noli prohibere conantur me",
},


#14 LDDestroier

  • Members
  • 1,089 posts
  • LocationACDC Town

Posted 14 July 2016 - 08:47 PM

Um,I meant translating what I put for 'noTerminate' from Latin to English.

#15 Checco2212

  • Members
  • 59 posts
  • LocationSomewhere in Europe

Posted 14 July 2016 - 08:59 PM

View PostEldidiStroyrr, on 14 July 2016 - 08:47 PM, said:

Um,I meant translating what I put for 'noTerminate' from Latin to English.
Oh.... I did it while I was trying to translate from English to Latin, very Latin culture stuff... :lol:

#16 LDDestroier

  • Members
  • 1,089 posts
  • LocationACDC Town

Posted 11 April 2017 - 09:55 PM

A new update!
Since KrakenCraft has made good use of sinelock for their doors in a giant round building, I thought it only logical to fix some of the most glaring issues.
+Added 1024 character limit, to halt completely insane password sizes
Change this in the config variable 'characterLimit'
+Optimized sine wave animation -- not only are all writing functions localized, but the delay between frames is 0.15 rather than 0.05.
Change this in the config variable 'sineFrameDelay'
+Increased the termination script size
*Sinelock will now print any errors it may encounter if terminationMode is set to 0.
*Fixed major issue with entering the correct password not registering as correct.

This will probably break your current setup, unless you've got only one password, in which case you're fine with replacing the old sinelock with the new.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users