Class DesEncrypter

java.lang.Object
se.datadosen.util.DesEncrypter

public class DesEncrypter
extends java.lang.Object
Based on http://www.exampledepot.com/egs/javax.crypto/PassKey.html but without Sun specific classes
  • Constructor Summary

    Constructors 
    Constructor Description
    DesEncrypter​(java.lang.String passPhrase)  
  • Method Summary

    Modifier and Type Method Description
    byte[] decrypt​(byte[] bytes)  
    java.lang.String decrypt​(java.lang.String str)  
    byte[] encrypt​(byte[] bytes)  
    java.lang.String encrypt​(java.lang.String str)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DesEncrypter

      public DesEncrypter​(java.lang.String passPhrase)
  • Method Details

    • encrypt

      public byte[] encrypt​(byte[] bytes)
    • encrypt

      public java.lang.String encrypt​(java.lang.String str)
    • decrypt

      public byte[] decrypt​(byte[] bytes)
    • decrypt

      public java.lang.String decrypt​(java.lang.String str)