xmlBlaster 2.1.0 API

org.xmlBlaster.authentication.plugins.demo
Class ReversibleCrypt

java.lang.Object
  extended by org.xmlBlaster.authentication.plugins.demo.ReversibleCrypt

 class ReversibleCrypt
extends java.lang.Object

A totally unsecure reversible crypt algorythm


Constructor Summary
ReversibleCrypt()
           
 
Method Summary
(package private)  byte[] crypt(byte[] dc2Value)
           
(package private)  java.lang.String crypt(java.lang.String dc2Value)
           
(package private)  byte[] decrypt(byte[] dc2Value)
           
(package private)  java.lang.String decrypt(java.lang.String dc2Value)
           
private  byte[] rot13crypt(byte[] byteArr)
          Rotates the chars 23 forward, the next time called it rotates again for 23 chars, so we have the decrypted string again
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReversibleCrypt

ReversibleCrypt()
Method Detail

rot13crypt

private byte[] rot13crypt(byte[] byteArr)
Rotates the chars 23 forward, the next time called it rotates again for 23 chars, so we have the decrypted string again


crypt

byte[] crypt(byte[] dc2Value)

decrypt

byte[] decrypt(byte[] dc2Value)

crypt

java.lang.String crypt(java.lang.String dc2Value)

decrypt

java.lang.String decrypt(java.lang.String dc2Value)

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.