Support Forums

Full Version: ACID Creation: Program
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok ok.... so I made this program that'll be able to make standardized Access Code ID's and is interchangeable with Remote ACID's (rACID). Basically what it does is create a code on the server side to give to people who are allowed access to specific server resources.

I am currently working on the server/client side scripting. Until then familiarise yourself with this program:
Code:
import random, hashlib, sys, time

arg_1 = (sys.argv[1])
try:
    arg_2 = (sys.argv[2])
except IndexError:
    arg_2 = None
    pass
if arg_2 != None and arg_2 != '-y':
    print 'ERROR: invalid argument\nTry `-y` to veiw the standard ACID encryption value'
    sys.exit(0)
try:
    1+int(arg_1)
except ValueError:
    print "ERROR: requires a numeric argument..."
    sys.exit(0)
if int(arg_1) > 18:
    print 'ERROR: max range is 18'
    sys.exit(0)
d = '#'
i = 1
while i <= int(sys.argv[1]) :
    digit = random.randrange(0, 9, 1)
    alphArray = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
    array = [digit,alphArray]
    choice = random.choice(array)
    if choice is digit:
        d = d+str(digit)
    else:
        alpha = random.choice(alphArray)
        d = d+alpha
    i = i+1

print '\n'+d
if arg_2 == '-y':
    print str('%'+hashlib.new('sha256',d).hexdigest()+'%\n')
interesting Tongue
r u making a rat??