Skip to content

mozq/dencode

Repository files navigation

DenCode

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: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 need to be run 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} with your own project ID.)

Supported encoding

I18n support

DenCode supports the following languages:

If you want to add other languages, please add or modify the following source code.

  • Add a translated messages file. Supported languages are detected from the file name.
    • /src/main/resources/messages_{language}.properties [Required]
  • Add translated page fragments
    • /src/main/webapp/WEB-INF/pages/policy_{language}.inc.jsp [Optional]
    • /src/main/webapp/WEB-INF/pages/{type}/method-desc_{method}_{language}.inc.jsp [Optional]

For the {language} part, use _ for regional variants in *.properties file names and - in *.jsp file names. (e.g. messages_zh_CN.properties, policy_zh-CN.inc.jsp)

How to add another encoder and decoder

If you want to add a new encoder or 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_{language}.properties [Required]
  • Add description files
    • /src/main/webapp/WEB-INF/pages/{type}/method-desc_{method}_{language}.inc.jsp [Optional]

Third-party color profiles

DenCode includes third-party ICC color profiles for some CMYK color conversions. These profile files are licensed separately from DenCode's Apache License 2.0 source code, and are redistributed without modification with their notices or license terms.

  • Coated_Fogra39L_VIGC_300.icc / Coated Fogra39L VIGC 300 is provided by VIGC with permission of X-Rite, Inc. See THIRD-PARTY-NOTICES/Coated_Fogra39L_VIGC_300.txt.
  • GRACoL2013_CRPC6.icc is provided by Idealliance with permission of X-Rite, Inc. See THIRD-PARTY-NOTICES/GRACoL2013_CRPC6.txt.
  • SWOP2013C3_CRPC5.icc is provided by Idealliance with permission of X-Rite, Inc. See THIRD-PARTY-NOTICES/SWOP2013C3_CRPC5.txt.

Client applications

About

DenCode : Multiple encodings and decodings at once

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

 
 
 

Contributors

Languages