This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
coaster3000's profile picture

[Old] pastebin login [V1.1]

Started by coaster3000, 19 May 2013 - 01:09 PM
coaster3000 #1
Posted 19 May 2013 - 03:09 PM
I decided to take a single page approach for my programs please see the following post for all my programs..


[topic='13111']My Programs[/topic] Please use this topic for support.


I was in need of a login for my pastebin work. This was before I Discovered smartpaste program on these forums.

So i decided to publish my edit on the pastebin program.

It adds an additional parameter to the runtime of a <username>

Note: This is an edited version of pastebin. Over 90% of the code comes from ComputerCraft.

Pastebin Link



Changelogs:
V1.1:
  • Added password hiding "*"
  • Changed: password put in during connection.
V1 :
  • Added login arguments
  • Added some error catching.
Please lock this topic so I can just have the one page for my programs..
Edited on 05 June 2013 - 04:27 PM
Zudo #2
Posted 22 May 2013 - 01:54 AM
to hide your password do read("*") instead of read(). But nice program!
coaster3000 #3
Posted 22 May 2013 - 05:52 PM
It uses program arguments. It does not ask for password.. Although that might be better..
Cranium #4
Posted 23 May 2013 - 10:52 AM
It is nice to see others using the Pastebin API. It's rather easy to use.

What you can do to get the password, is just take five arguments at first, the program name, get or put, the pastebin code, the file to save to, and the username. Then, once it has all of those, simply use read("*") to hide the password.

Nice work though.
coaster3000 #5
Posted 27 May 2013 - 05:59 PM
Thankyou for the information on read("*") I never knew you could do that by the way..

Also The pastebin link should not have changed. I updated the code to read the password if you specify a login username

Usage changed from
pastebin put <file> <username> <pass>

To
pastebin put <file> <username>

Then you specify it at connection time.