Giter VIP home page Giter VIP logo

image-proxy's Introduction

banner

Rust Image Proxy

What is this?, this is repository used for encrypting or hiding real source for image, for example in banner here, the real source is from https://content.vannapps.com/public/banner-image-proxy.png then using this repository we can encrypt it to hex with secret key ๐Ÿคซ, then we can use it like this https://image-proxy.vannapps.com/537671423169614552553465736634633877496759545053396571706c544b61794a4644726338337a6630746c574b4d6a35522b7361665476436338615742595a7a654c2f656270467643636e674d6b2f386f6464413d3d.

Features

  • Hide real source URL using aes-256-cbc
  • Encrypt using api
  • Written in Rust
  • Easy to setup

Requirement

Cargo & Rust Instalation

  • Windows
Open this link https://win.rustup.rs/
  • macOS & Linux
curl https://sh.rustup.rs -sSf | sh

How to use? [git clone]

  • Copy this repository git clone https://github.com/Vann-Dev/image-proxy
  • Write .env file, the example are in .env.example
  • Build the Rust file using cargo build --release (for production build) or cargo build (for development build)
  • To run the project, run the file inside target folder /target/release/image-proxy (for production) or cargo r (for development)

How to use? [Docker]

Endpoint

  • GET /[encrypted url] Return image with encrypted source
  • POST /encrypt Return encrypted hash used for getting image
body {
   "url": "https://content.vannapps.com/public/banner-image-proxy.png"
}

Product Example

https://image-proxy.vannapps.com/ use this url if you want to encrypt or get example image

https://image-proxy.vannapps.com/537671423169614552553465736634633877496759545053396571706c544b61794a4644726338337a6630746c574b4d6a35522b7361665476436338615742595a7a654c2f656270467643636e674d6b2f386f6464413d3d

image-proxy's People

Contributors

renovate[bot] avatar vann-dev avatar

Stargazers

 avatar

Watchers

 avatar

image-proxy's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cargo
Cargo.toml
  • dotenv 0.15.0
  • hex 0.4.3
  • magic-crypt 3.1.13
  • tokio 1.37.0
  • warp 0.3.7
  • reqwest 0.12.4
  • openssl 0.10.64
  • image 0.25.1
  • serde 1.0.200
  • serde_json 1.0.116
  • colored 2.1.0
dockerfile
Dockerfile
  • rust 1.78.0
  • alpine 3.19.1
github-actions
.github/workflows/docker-image.yml
.github/workflows/rust.yml
  • actions/checkout v4

  • Check this box to trigger a request for Renovate to run again on this repository

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.