Skip to content

Commit

Permalink
Added "how to setup configuration"
Browse files Browse the repository at this point in the history
  • Loading branch information
metamorphic-spyware committed Sep 3, 2021
1 parent da4e40b commit 63ce545
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,26 @@ After Following All The Steps Mentioned Above (If You Don't Get An Error) EnroCr
```python
# For Encryption
from enrocrypt import core
value = core.Encrypt(b'text')
obj = core()
value = obj.Encrypt(b'text')
print(value)
# For Decryption
original_value = core.DecryptList(value)
original_value = obj.DecryptList(value)
print(original_value)
```
There Is Also a `Decrypt`Function, But In This Function You Have To Enter The Key And The Data Seperatly

## Adding Configurations
Enrocrypt Has The Ablity To Adopt Custom Configurations, Namely:- Custom Salt
We Provide A Function In Which You Can Pass All The Configurations But It Also Has A Syntax And Must Be Used "As is"
```python
from enrocrypt import core
config = {
'configs':{
'salt_file':"The Path Of The File Where Your Salt Is Stored"
}
}
# You need a Core Class Object to access that function
obj = core()
obj.set_config(config)
```
(See Discussion For More Info)

0 comments on commit 63ce545

Please sign in to comment.