-
Notifications
You must be signed in to change notification settings - Fork 0
Functions
clearconsole: This functions is outside of any classes and will clear the console screen when called.
clearconsole()
wipefile: This function is outside of any classes and will wipe the specified file.
wipefile("test.txt")
keypair: This will create two linked keys that are the same length, there is a optional parameter that will print both keys.
key.keypair(), key.keypair(print)
solokey: This function will act like key pair function though it only returns one key.
key.solokey()
secure: This function takes one input a key or string it uses a secure algo to jumble it up.
key.secure("Taco")
hash: This function will hash the given string and return the encrypted string.
hash.hash("Caterpillar"), hash.hash("Pizza", print)
hashfile: This takes a string input of a file path and returns the file's hash.
hash.hashfile("data/test.txt")
comparehash: Super simple function it takes 2 hashes and if they are the same returns true.
hash.comparehash('131453', '21321)
standard: this function takes 2 inputs a file path and a message which is encrypted and printed in the file.
encryption.standard("test.txt", "Cambodia")
double: This function does almost the same as standard except for encrypting the string twice.
encryption.double("test.txt", "Estonian")
standard: This function will crack the encrypted file in plain text it takes the file path and key.
Decryption.standard("test.txt", "21lKD0213HGY")
double: This function will decrypt the double encrypted file it also takes the file path and key.
Decryption.double("test.txt", "sd02EJ6621FFa")