| 61 | |
| 62 | |
| 63 | void SQL_CRYPT::decode(char *str,uint length) |
| 64 | { |
| 65 | for (uint i=0; i < length; i++) |
| 66 | { |
| 67 | shift^=(uint) (my_rnd(&rand)*255.0); |
| 68 | uint idx= (uint) ((uchar) str[0] ^ shift); |
| 69 | *str = decode_buff[idx]; |
| 70 | shift^= (uint) (uchar) *str++; |
| 71 | } |
| 72 | } |
no test coverage detected