/dencode-web

Source code of DenCode.

Primary LanguageJavaApache License 2.0Apache-2.0

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

Install Java SE Development Kit (JDK).

Open a shell or command line and execute the following commands on the project root directory.

Run on local machine:

./gradlew appRunStage

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

Deploy to Google App Engine:

Install Google Cloud SDK and execute the following commands. gcloud commands only needs to be executed for the first time.

gcloud auth login
gcloud config set project {PROJECT_ID}
./gradlew appengineDeploy

(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