Giter Club home page Giter Club logo

cidomo's Introduction

cidomo

Encrypt and Set Wallpaper README

This Go code encrypts files in a specified directory, generates a wallpaper image, and sets it as the desktop wallpaper. Additionally, it logs the details of encrypted files.

Prerequisites

  • Go programming language installed
  • Basic understanding of Go programming concepts
  • Windows operating system

Instructions

  1. Modify the root variable in the code to specify the root directory where encryption should start. For Windows systems, the default is C:\.

  2. Update the key variable to set the encryption key. The key should be a 16-byte byte array.

  3. Run the program using the command go run main.go in the terminal.

  4. The program will encrypt files with extensions .docx, .xlsx, and .pptx in the specified directory and its subdirectories.

  5. The encrypted files will be saved with a .goblok extension in the same location as the original files.

  6. The program will generate a new wallpaper image with the text "silahkan periksa file anda" and save it as output.png in the temporary folder.

  7. The generated wallpaper image will be set as the desktop wallpaper.

  8. The program will create a log file named encryption.log in the same directory. The log file will contain details of each encrypted file in the format filename with extension | encrypted filename with extension | directory.

  9. After execution, check the log file for the encrypted file details.

Customization

  • To encrypt files with different extensions, modify the ext comparison in the code to include the desired file extensions.

  • To change the text on the wallpaper image, modify the addLabel function in the code.

  • To set the wallpaper image from a different location, update the tempFile variable with the desired file path.

Limitations and Caution

  • The code provided is for educational purposes and should be used responsibly.

  • Encrypting files indiscriminately can have serious consequences. Ensure you have appropriate permissions and take necessary precautions before running the code.

  • Changing the desktop wallpaper requires administrative privileges.

  • Always back up important files before encryption.

License

This code is released under the MIT License.

cidomo's People

Contributors

kanaksasak 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.