security module

class security.Crypto(enc_ls, dec_ls, key)

Bases: object

Crypto Class Is Made For Do Encryption And Decryption More Coder Friendly :)

dec(s)
enc(s)
class security.Load(file_name)

Bases: object

A Class To Load Saved Variables. Example :

``` def test():

print(name)

Load(“file.txt”)(test)

# Or handler = Load(“file.txt”) print(handler.vars) # All Variables As Dictionary

# Or Load(“file.txt”)() print(name) # If You Saved name It Will Be Shown :) ```

load(module=None)
vars()
class security.Save(file_name, **kwargs)

Bases: object

A Class To Save Some Variables With Some Simple Encryption. Example :

``` Save(“file.txt”,name=”test”,family=”123”,…)()

# Or handler = Save(“file.txt”) handler.add_var(“name”,”Arshia”) handler.add_vars({“nickname”:”MrMegaExpert”,”age”:21}) handler.save() # Or handler()

# Or handler = Save(“file.txt”) handler[“name”] = “Arshia” handler.save() # Or handler() ```

add_var(key, value)
add_vars(**kwargs)
save()
security.make_enc(alg, key=b'')

make_enc Function Will Make You An instance Of Crypto Class That Contains A Chain Of Encryption Algorithm. In Fact You Are Free To Use Just One Or More. Args/Kwargs : * alg -> The Algorithm That Can Be Like Algorithms.XOR Or Like

[Algorithms.XOR,Algorithms.Base64]

  • key -> The Target Key That You Want To Use In Encryption Process.

Example :

`a = make_enc([Algorithms.XOR,Algorithms.Base64],10) a.enc("Hello")    # Encrypt "Hello" Equals "Qm9mZmU=" a.dec("Qm9mZmU=") # Decrypt "Qm9mZmU" Equals "Hello"`