-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
30 lines (24 loc) · 758 Bytes
/
test.py
File metadata and controls
30 lines (24 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import api.sql as sql
import oracledb
import hashlib
connection = oracledb.connect(
user="GROUP14",
password="hd9qaY5L2t",
dsn=oracledb.makedsn("140.117.69.60", 1521, service_name='ORCLPDB1')
)
db = sql.DB()
misc = sql.MISC()
student = sql.Students()
scholarship = sql.Scholarships()
cursor = db.connect()
a = misc.get_college()
b = scholarship.get_scholarship("1")
print(b)
applied = misc.get_applied_scholarships()
print(applied)
# password = "P@s5w0rd"
# # Encode the password as bytes and hash it with SHA-1
# hash_object = hashlib.sha1(password.encode())
# # Get the hex digest (a string of hexadecimal digits) of the hash
# hash_hex = hash_object.hexdigest()
# print("SHA-1 hash of password:", hash_hex)