Skip to content

mozq/dencode-web

Repository files navigation

dencode-web

DenCode is a web application for encoding and decoding values.
e.g. HTML Escape / URL Encoding / Base64 / MD5 / SHA-1 / CRC32 / and many other String, Number, DateTime, Color, Cipher, Hash formats

Website

https://dencode.com/

Usage

Use DenCode online:

You can use DenCode online without downloading it.

https://dencode.com/

Run using Docker:

With Docker, you can run DenCode wherever you want.

docker run -p 8080:8080 ghcr.io/mozq/dencode-web:latest

After startup, DenCode can be accessed at http://localhost:8080/ .

Build using Gradle:

If you want to build DenCode from the source code yourself, use Gradle within the project. Install Java SE Development Kit (JDK) and run the following command on the project root directory. Build artifacts are stored in build/app/ directory.

./gradlew build

If you want to run DenCode as well, run the following command.

./gradlew runApp

Deploy to Google App Engine:

Install Google Cloud SDK and run the following commands. First two commands, gcloud auth and gcloud config, only needs to be ran for the first time.

gcloud auth login
gcloud config set project {PROJECT_ID}

./gradlew build
cp src/main/appengine/app.yaml build/app/
gcloud app deploy build/app/app.yaml --no-promote --no-stop-previous-version

(Please replace {PROJECT_ID} to your own project id.)

Supported encoding

I18n support

DenCode supports English (en), Japanese (ja) and Russian (ru). If you want to add other languages, please add or modify the following source code.

  • Append a new language-code to locales config with comma separator (like locales=en,ja,ru)
    • /src/main/resources/config.properties [Required]
  • Add translated files
    • /src/main/resources/messages_*.properties [Required]
    • /src/main/webapp/WEB-INF/pages/policy_*.inc.jsp [Optional]
    • /src/main/webapp/WEB-INF/pages/method-desc_*.*_*.inc.jsp [Optional]

How to add another encoder and decoder

If you want to add another encoder and decoder, please add or modify the following source code.

  • Add a new dencoder class
    • /src/main/java/com/dencode/logic/dencoder/*Dencoder.java [Required]
  • Append the encoding and decoding rows for the dencoder
    • /src/main/webapp/WEB-INF/pages/index.jsp [Required]
  • Append label texts for index.jsp
    • /src/main/resources/messages_*.properties [Required]
  • Add description files
    • /src/main/webapp/WEB-INF/pages/method-desc_*.*_*.inc.jsp [Optional]

Client applications

About

Source code of DenCode.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •