Giter Site home page Giter Site logo

fernet-class's Introduction

Symmetric Encryption using Fernet

Python Code for Encrypting and decrypting text

Here we use Cryptographic module Fernet

Here inside security.py there is a class coonstructed for fernet you can use this inside your project


Set-Up

$ pip install -r requirements.txt

Working

$ python keygen.py

$ python encode.py

Enter the Secret Message: Fernet is really cool

$ python decode.py

Enter 1 for File input mode or skip: 1
Fernet is really cool
Result File command
Class which has key generation,encryption,decryption functions which are made easy to handle security.py python security.py
The key is stored in the configuration file log.cfg
Key is generated and stored inside log.cfg keygen.py python keygen.py
Encrypting message and stored inside database.txt encrypt.py python encrpt.py
Decrypt the encrpted message stored inside database.txt after collecting key decrypt.py python decrpt.py
encrypted message is stored database.txt

Task

  • Adding files and image encryption

Contributors


Niranjan B(Prof Moriarty)

๐Ÿ’ป ๐Ÿ“–

License & copyright

ยฉ Niranjan B

Licensed under the GNU GPL


Mention This Repo while you use this in your projects :)

fernet-class's People

Contributors

niranjanneeru avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.