vb.net - Dex Algorithm Overflow Exception -
i trying develop encryption algorithm using dex . seems getting exception regarding byte overflow , have tried changing cint , gives same error. details: system.overflowexception occurred hresult=0x80131516 message=arithmetic operation resulted in overflow. source=windowsapp1 stacktrace: @ windowsapp1.shitcrypt.cryptoclass.dexencrypt(byte[] byte_0, string string_0) in c:\users\jij\documents\visual studio 2017\projects\windowsapp1\windo public shared function dexencrypt(byte_0 byte(), string_0 string) byte() 'fonction de cryptage dim bytes byte() = encoding.ascii.getbytes(string_0) double = 0 4 j double = 0 byte_0.length - 1 byte_0(j) = byte_0(j) xor bytes(j mod bytes.length) k double = 0 bytes.length - 1 byte_0(j) = cbyte(clng(byte_0(j)) xor (clng(clng(bytes(k)) << (i , 31)) xor k) + j) next next next return byte_0