WSO2 Carbon - ciphertool [ Documentation Index ]

ciphertool - Utiliy to encrypt and decrypt simple texts

Introduction

This is a simple tool to encrypt and decrypt simple texts.There are scripts named ciphertool.sh & ciphertool.bat available in the bin directory to launch the tool. The arguments accepted by this tool with their meanings are shown bellow.

  • keystore - If keys are in a store , its location
  • storepass - Password to access keyStore
  • keypass - To get private key
  • alias - Alias to identify key owner
  • storetype - Type of keyStore, Default is JKS
  • keyfile - If key is in a file
  • opmode - encrypt or decrypt , Default is encrypt
  • algorithm - encrypt or decrypt algorithm , Default is RSA
  • source - Either cipher or plain text as an in-lined form
  • outencode - Currently base64 and used for encoding the result
  • inencode - Currently base64 and used to decode input
  • trusted - Is KeyStore a trusted store? If this argument is provided, consider as a trusted store
  • passphrase - if a simple symmetric encryption using a pass phrase shall be used

An example

ciphertool.bat -source testpass -keystore resources/security/client-truststore.jks -storepass wso2carbon -alias wo2carbon -outencode base64 -trusted