r/ComputerCraft • • Jun 21 '21

Working adjustable passcode door with keypad input (LittleTiles + CC: Tweaked)

60 Upvotes

7 comments sorted by

1

u/ozozx4879 Jun 22 '21

Dude you got the code for protected keyboard input? Tryna code a login but can't get around hiding a password as I type it.

2

u/LieutenantLego Jun 22 '21

I’ll try and write up some code for you. Will the password include letters and numbers?

1

u/ozozx4879 Jun 22 '21

Letters, numbers, and possibly special characters. I'm trying to have a pastebin user login system so you could upload/download pastes to and from your personal account

1

u/LinearNoodle Jun 23 '21

Oh check out pastebin get L9ZiQ7jb CCPastebin then, it's one of my oldest programs so it has some flickering issues, but it's a full pastebin GUI in ComputerCraft. You can log in to upload pastes, download pastes, view pastes and directly run your pastes. The only thing that isn't supported is editing pastes, because the pastebin API does not allow that.

1

u/LinearNoodle Jun 23 '21

Check the documentation for read, the first argument is replaceChar, which is the character you want to visually replace the typed text with. Aka: local pass = read("*")

1

u/ozozx4879 Jun 24 '21

Will definitely take a look, thanks!

2

u/DerpyTurtle1001 Jun 22 '21

awesome, i still need to try LittleTiles