modify AES encrypt/decrypt secure random key generating method