protected static final String decrypt ( String value , String cipherKey ) { int len = value == null ? 0 : value . length ( ) ; if ( len < 3 ) { return "" ; } int identifierIndex = value . charAt ( 0 ) - 32 ; int associatorIndex = value . charAt ( len - 1 ) - 32 ; String [ ] cipher = CipherRegistry . getCipher ( cipherKey ) ; return StrUtil . xlate ( value . substring ( 1 , len - 1 ) , cipher [ associatorIndex ] , cipher [ identifierIndex ] ) ; }
Decrypt a string value .